1. Address Planning
192.168.1.110 Master1
192.168.1.111 Master2
192.168.1.112 Master3
192.168.1.115 salve1
192.168.1.116 Salve2
Master node:
1. Turn off the firewall
Systemctl Stop firewalld && systemctl disable FIREWALLD
2. Turn off SELinux
Setenforce 0
3. Installing the mesosphere source
rpm-ivh/mesosphere-el-repo-7-1.noarch.rpm
4. Installing Mesos and related software
Yum-y Install Mesos Mesosphere-zookeeper
5. Configure Zookeeper
Master1:echo 1 >/var/lib/zookeeper/myidmaster2:echo 2 >/var/lib/zookeeper/myidmaster3:echo 3 >/var/lib/zook Eeper/myid
Vi/etc/zookeeper/conf/zoo.cfg #加入server. 1=192.168.1.110:2888:3888server.2=192.168.1.111:2888:3888server.3= 192.168.1.112:2888:3888
6. Configure Mesos
Master1 Master2 Master3
VI/ETC/MESOS/ZK #加入zk://192.168.1.110:2181,192.168.1.111:2181,192.168.1.112:2181/mesos
Echo 2 >/etc/mesos-master/quorum #加入
Master1:echo 192.168.1.110 | sudo tee/etc/mesos-master/hostnamemaster2:echo 192.168.1.111 | sudo tee/etc/mesos-master/hostnamemaster3:echo 192.168.1.112 | sudo tee/etc/mesos-master/hostname
7. Configure Marathon
Go to the official website to download marathon.tar.gz
Master1 Master2 Master3
Tar zxvf marathon.tar.gzcd marathon/start:./bin/start--master zk:// 192.168.0.180:2181,192.168.0.227:2181,192.168.0.221:2181/mesos--zk zk:// 192.168.0.180:2181,192.168.0.227:2181,192.168.0.221:2181/marathon
8. Start Mesos-master,zookeeper
Systemctl Start zookeeper && systemctl start mesos-mastersystemctl Disable Mesos-slave
Slave node:
1. Turn off the firewall
Systemctl Stop firewalld && systemctl disable FIREWALLD
2. Turn off SELinux
Setenforce 0
3. Installing the mesosphere source
rpm-ivh/mesosphere-el-repo-7-1.noarch.rpm
4. Installing Mesos
Yum-y Install Mesos
5. Configure Mesos
Slave1 Slave2
VI/ETC/MESOS/ZK #加入zk://192.168.1.110:2181,192.168.1.111:2181,192.168.1.112:2181/mesos
Slave1:echo 192.168.1.115 | sudo tee/etc/mesos-slave/hostnameslave2:echo 192.168.1.116 | sudo tee/etc/mesos-slave/hostname
6. Start Mesos-slave
Systemctl start Mesos-slave && systemctl enable mesos-slavesystemctl disable Mesos-master
Test:
Input 192.168.0.111:5050
Just enter a master address and Ok,zookeeper will automatically pick a leader
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/75/BB/wKioL1ZBna7xU5ZzAAD8QYJlg6Q945.png "title=" {H (n6j [9e0~q$zrbsm1zep3.png "alt=" Wkiol1zbna7xu5zzaad8qyjlg6q945.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/75/BD/wKiom1ZBncHiSEQuAABvHyzFXaY113.png "title=" 5rt10y {881%z (_~5] @VJNXX. png "alt=" Wkiom1zbnchisequaabvhyzfxay113.png "/>
Input 192.168.0.111:8080, which can be used to publish Docker images and adjust the number of apps
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/75/BB/wKioL1ZBnjrzi9l5AAB3gnvDaWE139.png "title=" x8q4%} 9 (D~ex (@~}u142d96.png "alt=" Wkiol1zbnjrzi9l5aab3gnvdawe139.png "/>
This article is from the "Ming Linux blog" blog, be sure to keep this source http://zhaijunming5.blog.51cto.com/10668883/1711467
CENTOS7 installation Mesos+marathon+zookeeper (i)