1. 安装epel源
yum -y install epel-release
2. 安装supervisor
yum -y install supervisor
3. 创建工作目录
[root@localhost ~]# mkdir /opt/lnmp
[root@localhost ~]# cd /opt/lnmp/
4.编写PHP测试页面
[root@localhost lnmp]# vim index.php
[root@localhost lnmp]# cat index.php
3. 编写配置文件
[root@localhost ~]# cd /etc/supervisord.d/
[root@localhost supervisord.d]# vim lnmp.ini
[root@localhost supervisord.d]# cat lnmp.ini
[program:nginx]
command=nginx -g 'daemon off;'
[program:php]
command=php-fpm -F
[root@localhost supervisord.d]#