Foreword
Based on Tencent cloud CentOS 7.5 server, deploy Apache
web 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
- Almost run on all computer platforms.
- Support for the latest http / 1.1 protocol
- Simple and powerful file-based configuration (httpd.conf).
- Supports the Common Gateway Interface (cgi)
- Support for virtual hosts.
- Support http authentication.
- Integrated perl (practical extraction and report language).
- Integrated proxy server
- Through a web browser can monitor server status, you can customize the log.
- Supports server-side include command (ssi).
- It supports secure socket layer (ssl).
- It has the ability to track a user's session.
- Support fastcgi (Common Gateway Interface)
- 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:
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
3.3 start httpd
systemctl start httpd
3.4 Setting the boot
systemctl enable httpd
3.5 check the service status
systemctl status httpd
Display running expressed complete.
3.6 PC browser to log test
Testing linked server ip address:
公网IP #博主修改了hosts文件,设置了公网ip别名
Note: apache
Shi Web Server
, so the default port 80
.
The successful test means that the installation is complete page appears.