🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 1. Mesos+docker+marathon+zookeeper ### 1.1 安装mesos > docker1 :mesos-master,marathon docker2:mesos-slave,zookeeper 1. 下载mesos ~~~ wget http://archive.apache.org/dist/mesos/1.3.0/mesos-1.3.0.tar.gz ~~~ ~~~ # Update the packages. $ sudo apt-get update # Install a few utility tools. $ sudo apt-get install -y tar wget git # Install the latest OpenJDK. $ sudo apt-get install -y openjdk-7-jdk # Install autotools (Only necessary if building from git repository). $ sudo apt-get install -y autoconf libtool # Install other Mesos dependencies. $ sudo apt-get -y install build-essential python-dev python-six python-virtualenv libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev ~~~ > * 要求: 1. Mesos runs on Linux (64 Bit) Mac OS X (64 Bit). 2. GCC 4.8.1+或者Clang 3.5+ * 安装 Clang,不是必须的 `http://llvm.org/releases/download.html # 处这里下载` ~~~ 解压到 clang+llvm-3.6.0-x86_64-Linux-gnu 文件夹 cd clang+llvm-3.6.0-x86_64-linux-gnu sudo cp -r * /usr/local 在终端输入 clang –v 就能看见安装好的 clang 编译器版本了 ~~~ * 解压mesos ~~~ mkdir build $ cd build $ ../configure $ make -j 3 # Run test suite. $ make check # Install (Optional). $ make install ~~~ * > 启动master,在build目录下的bin ~~~ sudo bin/mesos-master.sh --ip=192.168.56.130 --work_dir=/opt/mesos/work --zk=zk://192.168.56.131:2181/mesos --cluster=mesos-cluster --quorum=1 & ~~~ * > 启动slave,在build下的bin ~~~ sudo ./mesos-agent.sh --master=192.168.56.130:5050 --work_dir=/var/lib/mesos & ~~~ * * * * * ### 1.2 安装marathon 1. 下载包 `http://downloads.mesosphere.com/marathon/v1.4.3/marathon-1.4.3.tgz` 2. 解压 `$ tar -zxvf marathon-1.4.3.tgz` 3. 启动marathon ~~~ $ cd marathon-1.4.3/bin $ ./start --master zk://192.168.56.131:2181/mesos --zk zk://192.168.56.131:2181/marathon ~~~ > * 登录marathon管理界面 `http://192.168.56.130:8080` ![](https://box.kancloud.cn/17a0554b05a8f4f7a145ff133123b788_898x605.png)