主机中出现错误:443 并且连接主机时显示 400 错误请求错误。
(venv)root@*****-dev:/usr/local/src/security_monkey/nginx# # sudo nginx
Enter PEM pass phrase:*****
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] still could not bind()
答案1
看起来您的 HTTPS 端口上已运行了某些程序。我不熟悉 Google Cloud Platform,您的问题缺乏大量细节,但您可以尝试运行以下任一命令来确定端口 443 上是否已运行某些程序
sudo lsof -i -P -n | grep 443
或者
netstat -tulpn | grep 443