mesos安装、配置和运行
环境:rhel6.6
安装:
- 安装依赖包
yum install -y tar wget git which nss yum groupinstall -y "Development Tools" yum install -y devtoolset-2-toolchain yum install -y python-devel java-1.7.0-openjdk-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-util-devel yum install -y libcgroup yum install maven30.x86_64 service cgconfig start export MAVEN_HOME=/opt/rh/maven30/root/usr
- 将高版本g++(4.8以上)取代rhel6.6自带的低版本g++
export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH
- 配置编译环境
export LD="/opt/rh/devtoolset-2/root/usr/bin/g++" export CXX="/opt/rh/devtoolset-2/root/usr/bin/g++"
- 编译mesos
mkdir build cd build ../configure ../configue --disable-python --disable-java # 不能访问外网时执行 make -j 12 V=0 make check make install
- 启动
export PATH=$PATH:/usr/local/sbin/
./mesos-master.sh --work_dir=/var/lib/mesos ./mesos-slave.sh --master=10.144.87.73:5050
接下来就是编写framework执行任务了,留待下回分解