Reference documents: http://jingyan.baidu.com/article/29697b912f6539ab20de3cf8.html
1. Search Apache official website, find Apache HTTP server (httpd) Linked fields bit, window go to files for Microsoft Windows
2. Then in
- Apachehaus
- Apache Lounge
- BitNami WAMP Stack
- Wampserver
- Xampp
Select the top 3, click to go to download, download
,
Pressure to the target, no spaces.
3. If the activation report is missing VCRUNTIME140.dll, you can go to https://www.microsoft.com/zh-CN/download/details.aspx?id=48145 to download it.
4. Then cmd goes to the bin under the Httpd-k install installation (may require administrative privileges, unloading is httpd-k uninstall).
This step if there is a wrong path, in the apache24\conf\httpd.conf modified configuration as follows,
#Define srvroot "/apache24" Define srvroot "D:\javaInstall\apacheHttpd\Apache24" ServerRoot "${srvroot}"
5. The installation process may appear port occupied
Check command: netstat-aon|findstr "8080"
If there is an occupation modify apache24\conf\httpd.conf, Direct listen 8888
6. Start the service,
(1) Open services.msc, select Apache2.4 to open, if this step prompt can not be opened,
You can enter eventvwr.msc in cmd to see the bug in the application program in the window Journal;
(2) or go to apache24\bin,cmd input net start Apache2.4;
(3) or go to Apache24\bin,cmd enter httpd-k start to open (Close is httpd-k stop or httpd-k shutdown);
Finally, you can access the browser by entering http://localhost:8888/
Apache HTTP Server (httpd) Download installation