Apache Server General Operations

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.