Find the solution:
Run cmd to enter the bin directory of apache. Enter httpd.exe-w-n "Apache2.2"-k start
When I saw this brother, I laughed. It turned out that the first row had a problem. When I found the problem, I knew the second row.
The DocumentRoot "D:/www/demo" directory does not exist.
After that, my brother deleted this file and moved normally. Later, he realized that the demo folder under the www Directory of the server master was deleted.
The configuration in http. conf is not deleted.
No problem after restart
If you do not want to run ddos commands, you can install apache, open httpd. conf, and modify the wrong address.
Later, some apache prompts were found on the Internet.The requested operation has failedReason summary
Cause 1: Port 80 occupied
For example, IIS and Thunder. My apache server cannot be enabled due to thunder!
Cause 2: software conflict
If some software is installed, apache cannot be started, such as Dr.com. You can open the network connection-> TcpIp properties-> Advanced-> WINS tag to remove the lmhosts check of netbios and disable netbios of TCP/IP. and then start it.
Cause 3: httpd. conf configuration error
If the apache configuration file httpd. conf is incorrect and you start it in windows, the system prompts the requested operation has failed.