1、前言 最近在项目中用nginx做反向代理,需要动态生成nginx的配置。大概流程是用户在页面上新增域名、http或https协议以及端口信息,后台会根据域名自动生成一个nginx的server配置,在nginx.conf配置文件中使用include将所有的server配置加载进来。遇到一个问题就 ...
分类:
其他好文 时间:
2016-11-29 06:50:41
阅读次数:
279
1.到http://rpmfind.net/下载以下4个包:
golang-1.6.2-1.fc24.ppc64le.rpm
golang-bin-1.6.2-1.fc24.ppc64le.rpm
golang-src-1.6.2-1.fc24.noarch.rpm
go-srpm-macros-2-3.fc23.noarch.rpm
2.yum-yinstallgolang*.rpm
3.设置GOPATH变量为$HOME,即:
exportGOPATH=$HO..
分类:
其他好文 时间:
2016-05-16 14:39:32
阅读次数:
411
我们在前端转发这里采用的是haproxy,采用lvs或者nginx都可以本质上都是改变配置文件首先为haproxy创建日记文件mkdir-p/var/log/haproxytouchhaproxy.log开启rsyslog的haproxy的日记记录功能添加:$ModLoadimudp$UDPServerRun514在#savebootmessageaslotoboot.log之后添加local..
分类:
其他好文 时间:
2016-03-26 08:40:15
阅读次数:
226
Confd中用到了两个配置文件:一个是Templates文件,一个是TOML文件 TOML:看这里 Templates:看这里 下面简单的介绍一下Confd中Templates自带函数: base:path.Base的别名
exists:检查一个key是否存在,如果不存...
分类:
其他好文 时间:
2015-08-04 17:26:29
阅读次数:
126
其实前面已经用salt,安装部署了docker应用环境了,过程中还是遇到了不少问题,所以这里再相对仔细的记录一下,docker手机安装过程应注意的事情 安装过程部分参考了刘天斯大师文档部署1,安装环境说明系统环境:centos6.6服务应用了: haproxy confd etcd do...
分类:
其他好文 时间:
2015-06-25 00:06:31
阅读次数:
293
异常排查redis-server redis.windows.confD:\redis-2.8.17>redis-server.exe redis.windows.conf[4692] 27 Nov 12:14:05.995 #The Windows version of Redis alloca....
分类:
其他好文 时间:
2015-05-05 14:11:28
阅读次数:
237
D:\xampp\apache\conf\httpd.conf# Virtual hostsInclude conf/extra/httpd-vhosts.confD:\xampp\apache\conf\extra\httpd-vhosts.conf## ##ServerAdmin webm...
分类:
其他好文 时间:
2015-04-25 17:55:22
阅读次数:
109