• nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)


    [root@localhost ~]# journalctl -xe
    Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
    Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] still could not bind()
    Jan 29 localhost 10:39:20  systemd[1]: nginx.service: control process exited, code=exited status=1
    Jan 29 localhost 10:39:20  systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

    说明80端口被占用,杀掉这个进程:
    [root@localhost ~]# killall -9 nginx
    再次启动nginx:
    [root@localhost ~]# /usr/local/nginx/sbin/nginx
    查看是否启动:
    [root@localhost ~]# ps aux|grep nginx
  • 相关阅读:
    如何快速取得股票交易历史数据
    ArcSDE性能优化系列之ArcSDE参数篇
    2020年8月29日
    2020年8月31日
    9.2
    2020年8月25日
    2020年8月30日
    2020年8月27日
    2020年8月26日
    2020年8月28日
  • 原文地址:https://www.cnblogs.com/l-zl/p/10333029.html
Copyright © 2020-2023  润新知