centos7 fifth study - based on the Apache HTTP server set up

learning target:

In this study, master built by Linux-based WWW server.

Title steps:

1, the installation http service

2, put firewall through http services

3, edit test page

4, open the http service, browse test

Command:

1, the installation http

Apache (Apache) is the Linux software platform http

[root@server dhcp]# yum install httpd -y

Here Insert Picture Description

Contrast depot installed version is, if the same version is prompted nothing to do

2, put firewall through http services

Here Insert Picture Description

To add a permanent rule permanent, the restart still take effect

reload to reboot the firewall

3, edit test page
Here Insert Picture Description

Home Apache default storage location / var / www / html

Here Insert Picture Description

4, open httpd service, and view test

Service-Terminal

[root@server html]# systemctl enable httpd

[root@server html]# systemctl start httpd

Client side
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_37257758/article/details/94566385