Before I used phpstudy2016, everything was normal and could be started. Today I downloaded the 2017 version and found that apache could be started, but Nginx could not be started. I tried many times but it didn't work. The system environment uses Win10 Bit64 system and the hardware is i7- 2620M, 8G DDR3, 120G SSD 1T HD, I don’t know why I can’t start Nginx
Try running as an administrator
To check whether there is a port occupation problem, you can run nginx in the nginx directory in the command number to print out the error. The error message is as follows: The error message is bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) or check the error.log file under nginx\logs, you will find the above error message. Best wishes!
Another possibility is that port 80 is occupied. Specifically, there are the following occupancy situations: (1) Apache's httpd service has stopped serving. (2) Open the iis service, close the iis service (3) System thread with pid=4 occupies the port, refer to Baidu experience article (4) SQL service occupies, close sqlserver related services. If there is anything you don’t understand, just read a few more articles on Baidu. Best wishes!
Check whether the VC++2012 and VC++2015 runtime libraries are not installed. Check whether there are Chinese characters or spaces in the path.