# 时区调整
rm -f /etc/localtime
cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install -y ntp
systemctl enable ntpd
systemctl restart ntpd

# 关闭selinux
cd /etc/selinux && sed -i '/SELINUX=/d' config ; echo 'SELINUX=disabled' >> config

# 开启ntp
systemctl enable ntpd
systemctl restart ntpd

# 系统ulimit调整
echo '
* - nofile 1000000
* - noproc unlimited
' > /etc/security/limits.d/20-nproc.conf

# mirror调整

cd /etc/yum.repos.d/
yum install -y wget
rm -f *
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

# 安装必备软件
yum install -y telnet wget nc net-tools rsync

所有节点安装docker

# 使用docker1.11
rm -f *.rpm
yum remove -y docker*
rsync -avzP soft.ops.ac.cn::ops1970/dcos/docker-1.11.2/*.rpm .
yum localinstall -y docker-engine*.rpm

# 打开overlayfs
tee /etc/modules-load.d/overlay.conf <<-'EOF'
overlay
EOF

# 调整docker启动参数
mkdir -p /etc/systemd/system/docker.service.d && sudo tee /etc/systemd/system/docker.service.d/override.conf <<- EOF
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon --storage-driver=overlay 
EOF

# 
systemctl daemon-reload

systemctl restart docker

下载文件

1.7版本

cd ~
rsync -avzP soft.ops.ac.cn::ops1970/dcos/1.7/dcos_generate_config.sh .

1.8版本

cd ~
rsync -avzP soft.ops.ac.cn::ops1970/dcos/1.8/dcos_generate_config.sh .

WEB方式,搞到配置

bash dcos_generate_config.sh --web -vv

cli方式继续安装

cd ~
rsync -avzP soft.ops.ac.cn::ops1970/dcos/1.7/dcos_generate_config.sh .

# cli install
bash dcos_generate_config.sh --genconf
bash dcos_generate_config.sh --install-prereqs

mkdir -p /etc/systemd/system/docker.service.d && sudo tee /etc/systemd/system/docker.service.d/override.conf <<- EOF
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon --storage-driver=overlay 
EOF
systemctl daemon-reload
systemctl restart docker


bash dcos_generate_config.sh --preflight
sudo bash dcos_generate_config.sh --deploy
bash dcos_generate_config.sh --postflight

iptables -t filter -F
iptables-save

# 
http://192.168.126.16:8181/exhibitor/v1/ui/index.html

# 访问80端口就是

部署后,保留文件

所谓的安装文件,指的是运行sh文件的目录,会有genconf目录,下面有serve文件夹,该集群以后安装agent或者master就靠这个了。

状态检查

systemctl status dcos-mesos-slave
服务 服务页面
Mesos平台 http://192.168.126.16:8181/exhibitor/v1/ui/index.html
Dcos管理界面 http://192.168.126.16/
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""