lnmp restart 提示这个php-fpm没有
有两个php,有个7.0.33和5.6 的,我卸载了一个php-fpm/etc/init.d/php-fpm stoprm -rf /usr/local/php
rm -f /etc/init.d/php-fpm
现在就提示这样了,怎么让他运行php.5.6那个版本呢?现在网站提示502 Bad Gateway;
# lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...done
Shutting down MySQL. SUCCESS!
/usr/bin/lnmp: line 40: /etc/init.d/php-fpm: No such file or directory
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx...done
Starting MySQL.. SUCCESS!
/usr/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
Starting php-fpmdone
# ps -ef|grep php-fpm
root 25647 10 07:24 ? 00:00:00 php-fpm: master process (/usr/local/php5.6/etc/php-fpm.conf)
www 25648 256470 07:24 ? 00:00:00 php-fpm: pool www
www 25649 256470 07:24 ? 00:00:00 php-fpm: pool www
root 25671 145810 07:25 pts/1 00:00:00 grep --color=auto php-fpm
#
官网有多php版本的使用教程,可以去官网自己搜索:多PHP版本使用教程
页:
[1]