CentOS 7.5 build cloud WEB server (Apache)

Foreword

Based on Tencent cloud CentOS 7.5 server, deploy Apacheweb server cloud

Apache Introduction and Installation

1.Apache Profile

Apache HTTP Server (Apache for short) is an open-source Apache Software Foundation Web server software that can run on most computer operating system, due to its cross-platform and safety (although there have been new vulnerability is found, but due to its open-source, total vulnerabilities can be repaired quickly. Therefore the aggregate, its security is still quite high). The server is widely used, it is one of the most popular Web server software. It is fast, reliable, and can be expanded through a simple API, the Perl / Python, etc. interpreter built into the server.

2.Apache features

  1. Almost run on all computer platforms.
  2. Support for the latest http / 1.1 protocol
  3. Simple and powerful file-based configuration (httpd.conf).
  4. Supports the Common Gateway Interface (cgi)
  5. Support for virtual hosts.
  6. Support http authentication.
  7. Integrated perl (practical extraction and report language).
  8. Integrated proxy server
  9. Through a web browser can monitor server status, you can customize the log.
  10. Supports server-side include command (ssi).
  11. It supports secure socket layer (ssl).
  12. It has the ability to track a user's session.
  13. Support fastcgi (Common Gateway Interface)
  14. Support java servlets

3.Apache installation

3.1 to see if Apache is installed
rpm -qa httpd

Is not installed, enter silently.
It has already installed:
Here Insert Picture Description
display httpd version.

3.2 Installation httpd(main Apache Hypertext Transfer Protocol (HTTP) server) (apache package name of the service is called httpd)
yum install httpd* -y

Here Insert Picture Description

3.3 start httpd
systemctl start httpd
3.4 Setting the boot
systemctl enable httpd
3.5 check the service status
systemctl status httpd

Here Insert Picture Description
Display running expressed complete.

3.6 PC browser to log test

Testing linked server ip address:

公网IP  #博主修改了hosts文件,设置了公网ip别名

Note: apacheShi Web Server, so the default port 80.
Here Insert Picture Description
The successful test means that the installation is complete page appears.

Released four original articles · won praise 61 · views 4994

Guess you like

Origin blog.csdn.net/qq_40265974/article/details/103942780