![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
zj19880814
这个作者很懒,什么都没留下…
展开
-
nginx日志自动切换
简单的操作,要实现自动化的话,用shell脚本写个定时器 1.更改原来的日志的名字mv host_port_8000.access.log host_port_8000.access.log.bakmv host_port_80.access.log host_port_80.access.log.bak 2.执行命令kill -usr1 `cat /usr/loc...原创 2013-12-28 17:27:58 · 295 阅读 · 0 评论 -
php-fpm.conf 配置详解
转 http://www.cnblogs.com/zoro/archive/2012/01/10/2317964.html 运行时配置FPM 配置文件为php-fpm.conf,其语法类似 php.ini 。php-fpm.conf 全局配置段pid stringPID文件的位置. 默认为空.error_log string错误日志的位置. 默认: 安装路径#INSTALL_PREFI...原创 2013-08-20 12:07:04 · 262 阅读 · 0 评论 -
nginx 命令
1. 检查nginx配置文件的正确性[root@linux_jack ~]# /usr/local/nginx/sbin/nginx -t #输出如下内容表示正确nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is oknginx: configuration file /usr...原创 2013-08-20 22:31:18 · 82 阅读 · 0 评论 -
【转】使用nginx sticky实现基于cookie的负载均衡 – ttlsa教程系列之nginx
【转】http://www.ttlsa.com/html/1895.html 在多台后台服务器的环境下,我们为了确保一个客户只和一台服务器通信,我们势必使用长连接。使用什么方式来实现这种连接呢,常见的有使用nginx自带的ip_hash来做,我想这绝对不是一个好的办法,如果前端是CDN,或者说一个局域网的客户同时访问服务器,导致出现服务器分配不均衡,以及不能保证每次访问都粘滞在同一台服务...原创 2013-08-26 09:32:55 · 163 阅读 · 0 评论