宝塔用户_hlkgyh 发表于 2024-12-4 20:58:35

【待反馈】pid文件为空

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
系统版本:
问题描述:宝塔安装nginx显示pid文件为空
相关截图(日志、错误):

大炮运维V587 发表于 2024-12-5 09:36:02

您好,看提示是已经有程序在监听 80 端口了,您到服务器 SSH 终端里执行
lsof -i:80
看下是什么占用的预期结果如下:
root@btpanel2024:~# lsof -i:80
COMMAND       PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
nginx       92995www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       92995www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       92997www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       92997www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       92998www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       92998www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       92999www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       92999www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93000www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93000www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93001www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93001www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93002www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93002www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93003www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93003www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93004www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93004www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93005www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93005www   21uIPv6 19562578      0t0TCP *:http (LISTEN)
nginx       93006www   16uIPv4 19562573      0t0TCP *:http (LISTEN)
nginx       93006www   21uIPv6 19562578      0t0TCP *:http (LISTEN)


建议您那边重启 Nginx,命令如下
/etc/init.d/nginx restart
页: [1]
查看完整版本: 【待反馈】pid文件为空