Current location - Quotes Website - Collection of slogans - After nginx changed the port number, the php file could not be accessed.
After nginx changed the port number, the php file could not be accessed.
I tried to change the port number locally, and the access was normal.

So I guess your problem is that the firewall does not open the corresponding port. You can use telnet to check port 80 and the port you want to change. In addition, it is suggested that the port to be changed should be more than four digits, such as 8080,80818082, because all ports below 1000 digits are reserved by the operating system.

Window system comes with telnet command, which needs to be installed.

The command to check whether the port number is opened normally is telnet ip port.

telnet? 192. 168. 1.86 80

telnet? 192. 168. 1.86 8080

The port number can be telnet in, indicating normal.

Telnet does not go in, which means it is not normal.