| Guide |
Apache is the world's number one Web server, with more than 50% of Web servers using Apache, which can run on almost all computer platforms. Let me tell you some of the general operations of the Apache server. |
installation of Apache server
In general,Apache installs with Linux systems. When you install, you can install Apache on your system by selecting the Web server component. The user's job is primarily to configure the server.
Check if Apache is installed on the system
Under Red Hat Linux, users can perform the following commands to see if Apache and its version are present on the system:
[Email protected] ~]# Rpm-qa | grep httpd
If Apache is present, a message similar to the following is returned:
Httpd-2.2.3-6.e15system-config-httpd-1.3.3.1-l.e15httpd-manual-2.2.3-6.e15
Installing Apache Services
Method 1:rpm installed on the CD to find the following three installation packages: httpd-2.2.3-6.e15.i386.rpm, httpd-manual-2.2.3-6.el5.i386.rpm, SYSTEM-CONFIG-HTTPD-1.3.3.1.EL5.NOARCH.RPM, and then use the following command to install the HTTP service:
[Email protected] ~]# RPM-IVH httpd-2.2.3-6.e15.i386.rpm[[email protected] ~]# RPM-IVH Httpd-manual-2.2.3-6.el5.i386.rpm[[email protected] ~]# system-config-httpd-1.3.3.1.el5.noarch.rpm
Method 2: Source package installation before installation: first download Apache 2.0. Use the following command to decompress:
[Email protected] ~]# TAR-XVZF httpd-2*.tar.gz
Check the dependencies of the package, with the following command:
[Email protected] httpd-2*]#./configure
Then compile, using the following command:
[[email protected] httpd-2*]# make
Finally, use the following command to install:
[[email protected] httpd-2*]# make install
If you install Apache as root, you can see the test page by typing http://localhost directly into your browser. If you are not installing as root, add 8080 port http://localhost:8080/because the default port for Apache is 8080.
operation of Apache server
start Apache Server
[[Email protected] ~]# service httpd start
Stop Apache Server
[[Email protected] ~]# service httpd stop
Restart
Apache Server
[Email protected] ~]# service httpd restart
See if the Apache service has been started
[Email protected] ~]# Netstat-an | grep 53
Apache Server General Operations