# mesos

版本:1.1.0

安装:

```bash
# 安装devtoolset-2,包含gcc 4.8 版本
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
rpm --import http://linuxsoft.cern.ch/cern/centos/7/os/x86_64/RPM-GPG-KEY-cern
yum install -y devtoolset-2-toolchain
scl enable devtoolset-2 bash

# 安装mvn
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install apache-maven -y

# 安装subversion > 1.8
cat > /etc/yum.repos.d/wandisco-svn.repo <<EOF
[WANdiscoSVN]
name=WANdisco SVN Repo 1.8
enabled=1
baseurl=http://opensource.wandisco.com/centos/6/svn-1.8/RPMS/$basearch/
gpgcheck=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
EOF
yum install subversion-devel -y

# CentOS 6.6启用cgroup功能,启用cgconfig服务。
# 添加'perf_event = /cgroup/perf_event;'到/etc/cgconfig.conf的mount中。
#yum install -y libcgroup
service cgconfig start
chkconfig cgconfig on

# 安装libapr-1依赖包
yum install apr-devel -y
yum install apr-util-devel -y

# 安装libsasl2依赖包
yum install cyrus-sasl-devel -y
yum install cyrus-sasl-md5 -y

wget http://www.apache.org/dist/mesos/1.1.0/mesos-1.1.0.tar.gz
tar -zxf mesos-1.1.0.tar.gz
cd mesos-1.1.0
mkdir build
cd build
../configure --prefix=/usr/local/mesos-1.1.0
make -j 10
make install
ln -s mesos-1.1.0 /usr/local/mesos
```

- 添加hosts解析,注意反解析引起的集群异常问题。
- 添加节点sshkey
- 添加配置文件
- 添加节点slave

命令:

```bash
/usr/local/mesos/sbin/mesos-daemon.sh mesos-master
/usr/local/mesos/sbin/mesos-daemon.sh mesos-agent
```