推荐
分类目录
日期索引
- 2012 年二月 (1)
- 2011 年十二月 (1)
- 2011 年九月 (1)
- 2011 年八月 (5)
- 2011 年七月 (1)
- 2011 年六月 (1)
- 2011 年五月 (2)
- 2011 年四月 (2)
- 2011 年三月 (2)
- 2011 年一月 (1)
- 2010 年十二月 (3)
- 2010 年十一月 (8)
- 2010 年九月 (5)
- 2010 年七月 (1)
- 2010 年六月 (6)
- 2010 年五月 (10)
- 2010 年四月 (18)
- 2010 年三月 (8)
- 2010 年一月 (5)
- 2009 年十二月 (1)
- 2009 年十一月 (12)
- 2009 年十月 (3)
- 2009 年九月 (6)
- 2009 年八月 (8)
- 2009 年七月 (13)
- 2009 年六月 (5)
- 2009 年五月 (11)
- 2009 年四月 (12)
- 2009 年三月 (3)
- 2009 年二月 (9)
- 2009 年一月 (5)
- 2008 年十二月 (8)
- 2008 年十一月 (3)
- 2008 年十月 (6)
- 2008 年九月 (3)
- 2008 年八月 (15)
Friendship Link
我的CASE
资料链接
功能
标签云
最近评论
nginx 归档
-
CentOS中创建管理nginx的shell脚本
在 2010年05月14日 上发表 | 没有评论如果想在CentOS中安装最新版本的nginx,那用yum的方式安装就不行了,目前yum中的版本是0.6,而最新nginx版本是0.8.36。所以我们只能通过编译安装,但编译安装后问题就来了,不能像yum安装的那样通过/etc/init.d/nginx start(或stop或restart)。唯一的办法就是自己创建个脚本来实现这些功能: 1.停止nginx,推荐用这个命令 sudo kill `cat /usr/local/nginx/logs/nginx.pid` 2.创建/etc/init.d/nginx文件 sudo vim /etc/init.d/nginx 文件中添加如下内容: #!/bin/sh # # nginx - this script starts and stops the nginx daemin # # chkconfig: - 85...