answer Traveler Sun
The browser reports an error Connection refused, indicating that the connection request was rejected when trying to connect to the server or service. Possible reasons include but are not limited to: Service not running: The service you are trying to connect to may not be running on the server. Port error: You may have tried to connect to the wrong port. Firewall restrictions: The server's firewall may have blocked your connection request. Network problem: Connection failure may be caused by incorrect network configuration or unstable network. Server load: The server may be too loaded to handle more connections. Service configuration problem: The service may not be configured correctly, resulting in unacceptable connections. Combined with your description: ECS shows that it is running normally, using the pagoda panel, and one nginx fails to start, showing that "port [xxxxx] has been occupied by bt panel process"; Comment out the nginx configuration file with "#". After enabling the nginx service, the website still cannot be opened The preliminary troubleshooting direction is as follows: 1. The server is normal, not the server 2. The nginx startup prompts that the port is occupied. You should check which service process occupies the port (netstat+ps - ef command). If it is an important service, you can try to kill the process first and then start nginx 3. I don't know what you have commented. Although the nginx service is started, the problem of port occupation may not be solved. When visiting the website, there is no corresponding service behind this port, so it cannot be opened