码迷,mamicode.com
首页 > Web开发 > 详细

Saltstack生产案例之php和memcached安装

时间:2017-05-20 18:59:53      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:outside   https   unix   stat   keepalive   haproxy   hot   clu   alived   

直接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安装

标签:outside   https   unix   stat   keepalive   haproxy   hot   clu   alived   

原文地址:http://www.cnblogs.com/minseo/p/6882844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!