一、安装jdk和maven
修改/etc/profile文件
export M2_HOME=/opt/apache-maven-3.3.9
export JAVA_HOME=/opt/jdk1.8.0_73
export CLASS_PATH=.:JAVAHOME/lib/tools.tarexportPATH=JAVA_HOME/bin:M2HOME/bin:PATH
二、安装mesos
- 安装参考http://mesos.apache.org/gettingstarted/
- 首先按照gcc, g++
- yum install -y patch python-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util-devel
- ./configure
- make && make check && make install
三、安装启动zookeeper
- 解压zookeeper-3.4.8.tar.gz
- 在/opt/zookeeper-3.4.8/conf目录下,cp zoo_sample.cfg zoo.cfg
- 修改一下zoo.cfg文件
- 启动zkServer.sh start
四、启动mesos-master
- nohup mesos-master –log_dir=/root/mesos/logs –port=5050 –quorum=1 –registry=in_memory –work_dir=/root/mesos/data –zk=zk://${ip}/mesos &
五、安装启动marathon
- 解压marathon-1.1.1.tgz
- 启动:nohup ./start –master zk://IP/mesos−−zkzk://{IP}/marathon &
六、启动mesos-slave:
- nohup mesos-slave –log_dir=/root/mesos/logs1 –work_dir=/root/mesos/data1 –master=zk://${IP}/mesos &
http://blog.csdn.net/ppt0501/article/details/51363246