首页 > 代码库 > Saltstack生产案例之php和memcached安装
Saltstack生产案例之php和memcached安装
直接git配置文件
yum -y install git
cd /root/tools
git clone https://github.com/unixhot/saltbook-code
cd /root/tools/saltbook-code/salt/prod/keepalived
p -r * /srv/salt/prod/modules/keepalived/
修改一下install.sls
可以执行了
salt ‘10-8-86-172‘ state.sls modules.keepalived.install saltenv=prod
cd /root/tools/saltbook-code/salt/prod/cluster
cp haproxy-outside-keepalived.sls /srv/salt/prod/cluster/
cp haproxy-outside-keepalived.conf /srv/salt/prod/cluster/files/
cd /srv/salt/prod/cluster/
vim haproxy-outside-keepalived.sls
salt ‘10-8-86-172‘ state.sls cluster.haproxy-outside-keepalived saltenv=prod
下面是nginx+php
Saltstack生产案例之php和memcached安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。