VPS侦探论坛

 找回密码
 注册
查看: 2951|回复: 1

lnmp restart 提示这个php-fpm没有

[复制链接]
发表于 2021-5-30 07:24:51 | 显示全部楼层 |阅读模式

有两个php,有个7.0.33和5.6 的,我卸载了一个php-fpm  /etc/init.d/php-fpm stop
rm -rf /usr/local/php
rm -f /etc/init.d/php-fpm
现在就提示这样了,怎么让他运行php.5.6那个版本呢?现在网站提示502 Bad Gateway;
  1. [root@iZ2ze83ofdc8bpam30q54tZ ~]# lnmp restart
  2. +-------------------------------------------+
  3. |    Manager for LNMP, Written by Licess    |
  4. +-------------------------------------------+
  5. |              https://lnmp.org             |
  6. +-------------------------------------------+
  7. Stoping LNMP...
  8. Stoping nginx...  done
  9. Shutting down MySQL. SUCCESS!
  10. /usr/bin/lnmp: line 40: /etc/init.d/php-fpm: No such file or directory
  11. Gracefully shutting down php-fpm . done
  12. Starting LNMP...
  13. Starting nginx...  done
  14. Starting MySQL.. SUCCESS!
  15. /usr/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
  16. Starting php-fpm  done
  17. [root@iZ2ze83ofdc8bpam30q54tZ ~]# ps -ef|grep php-fpm
  18. root     25647     1  0 07:24 ?        00:00:00 php-fpm: master process (/usr/local/php5.6/etc/php-fpm.conf)
  19. www      25648 25647  0 07:24 ?        00:00:00 php-fpm: pool www
  20. www      25649 25647  0 07:24 ?        00:00:00 php-fpm: pool www
  21. root     25671 14581  0 07:25 pts/1    00:00:00 grep --color=auto php-fpm
  22. [root@iZ2ze83ofdc8bpam30q54tZ ~]#
复制代码

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-5-30 15:59:32 | 显示全部楼层


官网有多php版本的使用教程,可以去官网自己搜索:多PHP版本使用教程
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 00:51 , Processed in 0.025048 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表