-
Enter the apache server official website http://httpd.apache.org/, here we download the stable version
Take httpd 2.2.29 as an example, click download.
-
Due to the revision of the official website, the previous method may be downloaded in five ways. In order not to waste everyone's time, it is hereby amended 2017-09-22
The first step is to click the download link on the left
-
Click on the link a number of third party vendors
The next steps are the same as before
-
The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release deliverable.
If you cannot compile the Apache HTTP Server yourself, you can obtain a binary package from numerous binary distributions available on the Internet.
Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on Microsoft Windows, include:
apachehouse
Apache Lounge
BitNami WAMP Stack
WampServer
XAMPP
The general meaning is that apache itself does not provide the compiled installation package, only the source code. If you cannot compile it yourself, you can choose the following officially recommended third-party compiled websites.
The latter two are the famous wamp and xampp integrated environments. If you only want to download apache, you can choose the first three websites. Here we take the first ApacheHaus as an example.
-
After opening ApacheHaus, you will find that there are various windows versions on this website, you can choose the version you want to download.
-
Click the icon in the red box to start the download, x86 is 32-bit, x64 is 64-bit, choose to download according to your operating system
-
After decompression is a compressed package, move it to where you want to place it.
-
Go to the bin directory under apache on the command line and enter
httpd -k install
Install apache as a windows background service.
-
Use ApacheMonitor to start your apache
The Apache Monitor is a desktop tray application that allows you to monitor the existence of a running Apache service and easily start, stop and restart Apache. To use it just double click on the ApacheMonitor.exe in the \Apache24\bin folder. If you want it to start automatically for you when you log into the computer, just drag a copy into the Startup folder in Window's Start Menu.
Apache Monitor is a piece of software that allows you to monitor running Apache services and makes it easier to start, stop and restart Apache. Just double-click the \Apache24\bin directory
ApacheMonitor.exe can run the program. If you want to start the software automatically, just pull the software to the Startup folder in the start menu (please Baidu for how to use the Startup folder of Windows 10)
-
For more operations, please refer to the attached documentation readme_first.html.
-
A brief summary of some of the problems you have encountered
1. Since apache listens to port 80 by default, if your computer iis is in the startup state and also uses port 80, apache will not start normally, you need to stop iis first, and Thunder may also use port 80, so it should also be closed Thunder. To check whether port 80 is occupied, enter in the command line:
netstat -aon|findstr "80"
If you see the result as shown in the figure, it means that port 80 has been used, you need to close the relevant software first, or modify the default listening port of apache
Open conf/httpd.conf in the apache directory and search for "Listen 80"
Modified to Listen 8088
After saving, restart apache
-
2. httpd -k install After entering this command, check whether the service is successfully installed
Open Apache service monitor, there is no service in the service status list, why? Of course, there is a problem with apache installation, what should I do? According to experience, it should be the Apache service installation failed, how to install it?
Open the cmd window and enter the bin directory of Apache, as follows:
cd /d D:/Program Files/Apache Software Foundation/Apache2.2/bin
Enter: httpd -k install and press Enter to automatically install the Apache service.
Open the Apache service monitor again, and you can see the service.
Note that you can enter httpd -help in the cmd window to view the detailed usage of httpd.
Commonly used are the following:
To install Apache as a Windows NT service, the installed service name will be: Apache2, and the configuration file will use conf/httpd.conf:
httpd -k install
specifies the service name, when you install multiple Apache services on the same machine, They must be given different names.
httpd -k install -n "service name"
uses different configuration files for services with different names, then you need to specify a configuration file during installation:
httpd -k install -n "service name" -f "c:/files/web.conf ".
To remove an Apache service:
httpd -k uninstall
Use the following command to remove an Apache service with a specific name:
httpd -k uninstall -n "service-name"
Typically, the way to start, restart, and shut down an Apache service is to use the Apache Service Monitor tool, Alternatively you can use the console commands: NET START Apache2 and NET STOP Apache2 or through the Windows Services Control Panel. Before starting the Apache service, you should use the following command to check the correctness of the configuration file:
httpd -n "service name"
-t can be used to control the Apache service through command line switches. To start an installed Apache service, use:
httpd -k start
To stop an installed Apache service, use:
httpd -k stop or httpd -k shutdown
To restart a running Apache service, force it to re-read To get the configuration file, you can use:
httpd -k restart
Apache installation
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=324883461&siteId=291194637
Recommended
Ranking