上QQ阅读APP看书,第一时间看更新
How to do it...
- First, download and install the OpenPGP key for the Mesosphere packages:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
- Now install the Mesosphere repository:
$ DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]') $ CODENAME=$(lsb_release -cs) $ echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main"|
sudo tee /etc/apt/sources.list.d/mesosphere.list
- Update the apt-get package indexes:
$ sudo apt-get update
- Install Mesos and the included ZooKeeper binaries:
$ sudo apt-get -y install mesos
- At this point, you can start Mesos to do some basic testing. To start the Mesos master and agent (slave) daemons, execute the following:
$ sudo service mesos-master start $ sudo service mesos-slave start
- To validate the Mesos installation, open a browser and point it to http://<ipaddress>:5050. Replace <ipaddress> with the actual address of the host with the new Mesos installation.