Blogger Information
Blog 16
fans 0
comment 0
visits 14629
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
ubuntu14.04下配置supervisor守护nginx和php进程
进击的小菜鸟
Original
1029 people have browsed it

系统版本是14.04 LTSAC12YBD(`Y]AC)VF4EK@SDA.png

  • 安装

    安装很简单  使用下面的命令

sudo apt-get install supervisor

安装成功后,supervisor会默认启动

  • 使用

    首先配置nginx的守护进程 在/etc/supervisor/con.d目录下创建nginx.conf配置如下图

    ZYHF1K%[FE`3424R2K)XJVE.png

  •     最重要的是command后面填的是启动nginx的命令,php同理 要注意的是 如果php配置了环境变量 是读取不了的,需要填写完整的php.exe的路径。然后运行supervisorctl reload 重启服务使配置生效

  • supervisorctl start nginx   启动

  • supervisorctl restart nginx  重启 stop 停止

  • @[XTVC304H$ODZ84KJ61[%I.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!