您的位置:首页 > 运维架构 > Nginx

怎么查看nginx已经启动成功并且添加自动开机启动

2012-06-19 12:11 567 查看
验证nginx运行是否成功

$ curl -i http://localhost

HTTP/1.1 200 OK

Server: nginx/0.9.1

Date: Fri, 03 Dec 2010 02:34:01 GMT

Content-Type: text/html

Content-Length: 151

Last-Modified: Fri, 03 Dec 2010 02:00:40 GMT

Connection: keep-alive

Accept-Ranges: bytes

lnmp下nginx和pureftp无法开机自动启动

下面是 /etc/rc.d/rc.local 文件

#!/bin/sh

#

# This script will be executed *after* all the other init scripts.

# You can put your own initialization stuff in here if you don't

# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

/usr/local/nginx/sbin/nginx
本文出自 “linux开源-不断的总结....” 博客,谢绝转载!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: