File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
## 服务启动、停止和重启脚本
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 服务
6
10
+ 下载文件[ php-fpm.sh] ( https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/PHP/PHP-FPM/php-fpm.sh )
7
11
+ 注意配置文件:` sudo vim /usr/local/php-7.2/etc/php-fpm.conf `
8
12
> 务必开启配置文件的pid路径:` pid = run/php-fpm.pid `
572
576
+ 开启服务
573
577
574
578
```bash
575
- www@tinywan:~$ sudo service nginx restart
579
+ sudo service nginx restart
576
580
[sudo] password for www:
577
581
* Stopping Nginx Server... [ OK ]
578
582
* Starting Nginx Server... [ OK ]
579
583
```
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 服务
582
586
+ `php-fpm.sh`脚本代码 同上
583
587
+ 注意,需要重新加载服务:
584
588
You can’t perform that action at this time.
0 commit comments