怎么查看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开源-不断的总结....” 博客,谢绝转载!
$ 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开源-不断的总结....” 博客,谢绝转载!
相关文章推荐
- 添加服务到开机自动启动(centos7开机自启动nginx,php-fpm)
- nginx开机自动启动(添加到服务)
- C#.NET Form设置/取消开机自动运行,判断程序是否已经设置成开机自动启动
- nginx开机自动启动服务
- redis配置为开机自动启动并且后台运行
- 原创:Android怎么让一个service开机自动启动
- C#.NET Form设置/取消开机自动运行,判断程序是否已经设置成开机自动启动
- 【转】UBUNTU添加开机自动启动程序方法
- Ubuntu添加开机自动启动程序的方法
- centos7 配置nginx服务、设置开机自动启动
- centos7 配置nginx服务、开机自动启动
- windows下设置Nginx开机自动启动
- UBUNTU添加开机自动启动程序方法
- NGINX、PHP-FPM开机自动启动
- Linux(CentOS 64)设置nginx开机自动启动及chkconfig管理
- linux下添加自动启动项,linux 开机自动启动脚本方法
- Linux添加开机自动启动程序的方法
- Ubuntu添加开机自动启动程序的方法
- 在MAC系统里添加开机启动任务(但是怎么才能知道自己程序的固定位置呢?)
- Linux添加服务到开机自动启动