Skip to content

Commit 0bcc1c0

Browse files
authored
Update nginx-AutoStart.md
1 parent f52b223 commit 0bcc1c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nginx-AutoStart.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
Nginx加为系统服务(service nginx start/stop/restart)
1+
Openresty下,将Nginx加到系统服务(service nginx start/stop/restart)
22

33
1.下载脚本
4+
45
wget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginx --no-check-certificate
56

7+
68
2.修改权限
9+
710
chmod +x /etc/init.d/nginx
811

12+
913
3.修改nginx的路径
1014

1115
根据实际情况对nginx脚本进行修改
@@ -18,6 +22,7 @@ NGINXPATH=${NGINXPATH:-/usr/local/openresty/nginx}
1822

1923
保存,退出即可...
2024

25+
2126
4.使用方法:
2227

2328
service nginx start

0 commit comments

Comments
 (0)