# nginx Startup script for the Nginx HTTP Server
# this script create it by jackbillow at 2007.10.15.
# it is v.0.0.2 version.
# if you find any errors on this scripts,please contact jackbillow. # and send mail to jackbillow at gmail dot com.
#
# chkconfig: - 85 15
# description: Nginx is a high-performance web and proxy server. # It has a lot of features, but it's not for everyone. # processname: nginx
# pidfile: /var/run/nginx.pid
# config: /usr/local/nginx/conf/nginx.conf
nginxd=/root/nginx/sbin/nginx
nginx_config=/root/nginx/conf/nginx.conf
nginx_pid=/root/nginx/logs/nginx.pid
RETVAL=0
prog="nginx"
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -x $nginxd ] || exit 0
# Start nginx daemons functions.
start() {
if [ -e $nginx_pid ];then
echo "nginx already running...."
exit 1
fi
echo -n $"Starting $prog: "
daemon $nginxd -c ${nginx_config}
RETVAL=$?
设置nginx和php-fpm开机启动脚本_计算机软件及应用_IT/计算机_专业资料。这是一天的成果,这样做就可以不用每次都自己用命令去启动了...
nginx启动停止脚本_计算机软件及应用_IT/计算机_专业资料。nginx启动停止重启脚本#!/bin/bash # Startup script for the nginx Web Server # chkconfig: - 85 ...
Jdk+Nginx+Memcached 安装流程 和启动脚本_IT/计算机_专业资料。Jdk+Nginx+Memcached 安装流程,内附了 Nginx 和 memcached 的 启动脚本...
nginx开机自动启动_IT/计算机_专业资料。启动脚本第一步先运行命令关闭nginx sudo kill `cat /usr/local/nginx/logs/nginx.pid` 第二步 vi /etc/init.d/...
nginx开机启动_计算机软件及应用_IT/计算机_专业资料。配置nginx开机自动启动的脚本Nginx开机自动启动 vi /etc/init.d/nginx #!/bin/bash # nginx Startup ...
nginx 启动 停止 关闭_IT/计算机_专业资料。 nginx 启动 停止 关闭 CENTOS_Nginx2011-05-09 15:09:57阅读16评论0 字号:大中小 订阅. Nginx——最近十分之火...
开机自动加载nginx_IT/计算机_专业资料。开机加载nginx今日推荐 ... nginx启动脚本 3页 1下载券 nginx 启动 停止 关闭 2页 1下载券 Tomcat + ...
Nginx_安装、启动、重启_IT/计算机_专业资料。Nginx Yingjieli 1 Nginx 安装 ... nginx启动停止脚本 暂无评价 3页 免费喜欢此文档的还喜欢 nginx 84页 免费 ...
linux+nginx开启自动启动_计算机软件及应用_IT/计算机_专业资料。nginx开机启动设置Linux+Nginx 开机启动配置 vi /etc/init.d/nginx #!/bin/bash # nginx ...
热门文档