An another FPM instance seems to already listen on /tmp/php-cgi.sock
in 云服务器 with 0 comment

An another FPM instance seems to already listen on /tmp/php-cgi.sock

in 云服务器 with 0 comment

刚才续费vps之后,查看vps后台。看到swap和ram差不多占满的时候,准备重启下vps.

然后当我运行

lnmp start

时,跳出了如下错误提示(php-fpm已经在运行或其他程序占用了php-cgi.sock)

 ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock

突然想到start时,各个程序都还是开启状态,然后用了下面这个命令就好了

lnmp restart

顺利重启之后,网站依旧是404,查看发现又有一个问题

nginx: [warn] conflicting server name "域名" on 0.0.0.0:80, ignored

发现在nginx配置时域名出现了重复,于是在/usr/local/nginx/conf/vhost目录下查找,果然有2个conf因为直接复制修改的问题,忘记修改Server了。改完保存之后,运行一次lnmp restart,网站正常打开。

Comments are closed.