saltstack之安装wordpress(lnmp)

8年前 (2017-06-23) gtj lnmp, saltstack 0评论 已收录 885℃

1.安装salt

服务端

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install salt-master -y
yum install salt-minion -y
chkconfig salt-master on
chkconfig salt-minion on

/etc/init.d/salt-master start

客户端

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install salt-minion -y
chkconfig salt-minion on

配置salt

salt-master

vim /etc/salt/master
416 file_roots:
417 base:
418 - /srv/salt
mkdir /srv/salt
/etc/init.d/salt-master restart

minion

vim /etc/salt/minion
master: 10.20.23.144 #masterip
/etc/init.d/salt-minion start


博主

这货来去如风,什么鬼都没留下!!!

相关推荐

嗨、骚年、快来消灭0回复。

×
订阅图标按钮
Less is more!!!