#!/bin/sh # 将脚本保存为/etc/rc.d/init.d/nginxd,便可以使用service命令启动、停止、重启nginx服务。 # source function library . /etc/rc.d/init.d/functions # Source netw
原创
2012-05-01 17:50:31
431阅读
点赞
1评论
脚本介绍:脚本功能包括nginx的start,stop,reload,status#!/bin/bash
NGINX=/usr/local/nginx/sbin/nginx
PID=/usr/local/nginx/logs/nginx.pid
##fun
START () {
pstree -p |grep nginx >&nbs
原创
2014-10-09 10:47:11
2756阅读
#!/bin/bash
#
#chkconfig: - 85 15
#description: Nginx is a World Wide Web server.
#processname: nginx&n
原创
2016-01-02 11:23:49
490阅读
#!/bin/bash#chkconfig - 80 90pid="/usr/local/nginx/logs/nginx.pid"mynaginx="/usr/local/nginx/sbin/nginx"cecho(){ echo -e "\033[$1m$2\033[0m"}a=33;b=31start(){ if [
原创
2017-02-20 19:36:29
509阅读
编写nginx启动脚本,命令如下;vim /etc/init.d/nginx#!/bin/bash# chkconfig: - 30 21# description: http service.# Source Function Library. /etc/init.d/functions# Nginx SettingsNGINX_SBIN="/usr/local/nginx/sbin/
原创
2018-12-04 10:42:29
530阅读
#!/bin/bash # chkconfig: 2345 10 90 # description: nginx . /etc/rc.d/init.d/functions function show_usage(){ usage="Usage: `basename $0` [ start|stop|restart|reload ]" echo $usag
原创
2021-07-21 00:15:23
196阅读
#!/bin/bash# chkconfig:- 99 2# description:Nginx server controlPROG="/usr/local/nginx/sbin/nginx"PIDF="/usr/local/nginx/logs/nginx.pid"case "$1" in st ...
转载
2021-10-22 12:04:00
90阅读
2评论
nginx
原创
2018-02-06 02:36:29
472阅读
点赞
CODE:
#!/bin/sh## nginx - this script starts and stops the nginx daemin## chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse \# &n
转载
精选
2008-10-28 14:36:39
1874阅读
vi /etc/init.d/nginx
输入下面的脚本的内容
#!/bin/bash
# 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 a
转载
精选
2010-05-15 22:49:31
608阅读
1、编写脚本,名为nginx
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig:
原创
2010-10-14 16:49:16
380阅读
1评论
#!/bin/bash##nginx-thisscriptstartsandstopsthenginxdaemin##Bypiaomiao20131003#chkconfig:-8515#description:NginxisanHTTP(S)server.#processname:nginxNGINX=/usr/local/service/nginx/sbin/nginxNGINXPID=/va
原创
2013-10-03 10:09:51
374阅读
#!/bin/bash# chkconfig: - 30 21# description: http service.# Source Function Library. /etc/init.d/functions# Nginx SettingsNGINX_SBIN="/usr/local/nginx/sbin/nginx"NGINX_CONF="/usr/local/nginx/conf/ngi
原创
2015-05-11 22:14:52
355阅读
#!/bin/bash # 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 jackb
原创
2015-05-16 23:52:20
444阅读
#!/bin/sh## nginx - this script starts and stops the nginx daemin## chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse \# &nbs
原创
2015-06-30 16:15:08
752阅读
参考:http://www.01happy.com/centos-nginx-shell-chkconfig/在安装完nginx后,重新启动需要“kill -HUP nginx进程编号”来进行重新加载,显然十分不方便。如果能像apache一样,直接通过脚本进行管理就方便多了。nginx官方早就想好了,也提供了这个脚本,地址:http://wiki.nginx.org/RedHatNginxInit
转载
精选
2015-09-09 15:30:10
576阅读
#!/bin/bash# chkconfig: - 85 15# description: The Nginx HTTP Server is an efficient and extensible \# server implementing the current HTTP standar
原创
2015-09-17 09:34:08
337阅读
#!/bin/bash# chkconfig: - 85 15# description: The Nginx HTTP Server is an efficient and extensible \# server implementing the current HTTP standar
原创
2015-09-17 09:34:17
438阅读
#!/bin/bash
# nginx Startup script for the Nginx HTTP Server
# it is v.0.0.2 version.
# chkconfig: - 85 15
# descri
原创
2016-08-04 21:31:32
471阅读
脚本思路:仿照httpd的启动脚本,稍加修改即可。注:省去了创建pid文件这一步。脚本#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
# chkconfig:&nbs
原创
2016-08-21 19:53:04
414阅读