转载自:http://blog.csdn.net/yongzhang52545/article/details/7619187第一步先运行命令关闭nginx[plain]view plaincopysudokill`cat/usr/local/nginx/logs/nginx.pid`第二步[html]view plaincopyvi/etc/init.d/nginx输入以下内容[plain]view plaincopy#!/bin/sh##nginx-thisscriptstartsandstopsthenginxdaemin##chkconfig:-8515#description:Ngi Read More
posted @ 2014-03-11 23:15 奋斗中的毛毛虫 Views(321) Comments(0) Diggs(0) Edit
转载自:http://www.xj123.info/2572.html启动Nginx/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf停止Nginx可以发送向通信号给Nginx主进程的方式来停止Nginx,操作如下:CentOS release 5.7 (Final)[root@vps ~]# ps -ef | grep nginx#查询master process主进程号root 3266 1 0 Feb20 ? 00:00:00 nginx: master process /usr/local/nginx/sbin Read More
posted @ 2014-03-11 23:05 奋斗中的毛毛虫 Views(280) Comments(0) Diggs(0) Edit
原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://ixdba.blog.51cto.com/2895551/790611 Nginx安装完毕后,会产生相应的安装目录,根据前面的安装路径,Nginx的配置文件路径为/opt/nginx/conf,其中nginx.conf为Nginx的主配置文件。这里重点介绍下nginx.conf这个配置文件。 Nginx配置文件主要分成四部分:main(全局设置)、server(主机设置)、upstream(负载均衡服务器设置)和 location(URL匹配特定位置的设置)。main部分设置的指令 Read More
posted @ 2014-03-11 22:55 奋斗中的毛毛虫 Views(256) Comments(0) Diggs(0) Edit
转载自:http://www.cnblogs.com/xiaogangqq123/archive/2011/03/02/1969006.html在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络.#运行用户user www-data;#启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;#工作模式及连接数上限events { use epoll; #epoll是多路复用IO(I/O Multiple Read More
posted @ 2014-03-11 22:40 奋斗中的毛毛虫 Views(186) Comments(0) Diggs(0) Edit