Skip to content

Commit 2149e14

Browse files
committed
Update nginx-start-script.md add Nginx Ubuntu 16.04.2 LTS 启动脚本
1 parent 203d429 commit 2149e14

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Nginx/nginx-start-script.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
## 服务启动、停止和重启脚本
2-
+ [PHP-FPM](#PHP-FPM)
3-
+ [Nginx](#Nginx)
4-
## Ubuntu 14.04.2 LTS 启动脚本
5-
### <a name="PHP-FPM"/> PHP-FPM 服务
2+
+ [Ubuntu 14.04.2 LTS 启动脚本](#Ubuntu14)
3+
+ PHP-FPM 服务
4+
+ Nginx 服务
5+
+ [Ubuntu 16.04.2 LTS 启动脚本](#Ubuntu16)
6+
+ PHP-FPM 服务
7+
+ Nginx 服务
8+
## <a name="Ubuntu14"/> Ubuntu 14.04.2 LTS 启动脚本
9+
### PHP-FPM 服务
610
+ 下载文件[php-fpm.sh](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/PHP/PHP-FPM/php-fpm.sh)
711
+ 注意配置文件:`sudo vim /usr/local/php-7.2/etc/php-fpm.conf`
812
> 务必开启配置文件的pid路径:`pid = run/php-fpm.pid`
@@ -572,13 +576,13 @@
572576
+ 开启服务
573577
574578
```bash
575-
www@tinywan:~$ sudo service nginx restart
579+
sudo service nginx restart
576580
[sudo] password for www:
577581
* Stopping Nginx Server... [ OK ]
578582
* Starting Nginx Server... [ OK ]
579583
```
580-
## Ubuntu 16.04.2 LTS 启动脚本
581-
### <a name="PHP-FPM-16"/> PHP-FPM 服务
584+
## <a name="Ubuntu16"/> Ubuntu 16.04.2 LTS 启动脚本
585+
### PHP-FPM 服务
582586
+ `php-fpm.sh`脚本代码 同上
583587
+ 注意,需要重新加载服务:
584588

0 commit comments

Comments
 (0)