Experimental environment: Only need a CENTOS7 server, address set to 192.168.1.3 off SELinux and firewall
Experimental steps:
1. Installing Apache service-related packages
#yum-y Install httpd httpd-devel
2. Modify the Apache master configuration file
Modify the content as shown in:
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/09/12e8d1bd0620c1dbc1c392b0ca16c720.png-wh_500x0-wm_3 -wmp_4-s_1811520656.png "title=" Download (1). png "alt=" 12e8d1bd0620c1dbc1c392b0ca16c720.png-wh_ "/>
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/09/68c0d59c15614ea3c1421b1f790aac2a.png-wh_500x0-wm_3 -wmp_4-s_1768205909.png "title=" download. png "alt=" 68c0d59c15614ea3c1421b1f790aac2a.png-wh_ "/>
3. Create a default document and add content
Vim/var/www/html/index.html then enter the site content
Just write a few words, like write this is my first website
#httpd -t
5. Start the Apache service and check the service port
650) this.width=650; "Src=" https://s2.51cto.com/oss/201711/09/8e313aac71e21f8ccb645fb74f2ce480.png-wh_500x0-wm_ 3-wmp_4-s_3157325256.png "title=" 1.png "alt=" 8e313aac71e21f8ccb645fb74f2ce480.png-wh_ "/>
650) this.width=650; "Src=" https://s3.51cto.com/oss/201711/09/61bc079f128c3adb099d7e6063cf71b9.png-wh_500x0-wm_ 3-wmp_4-s_1672295830.png "title=" 2). png "alt=" 61bc079f128c3adb099d7e6063cf71b9.png-wh_ "/>
6. In order to experiment a little bit, I will not open the client, we install a Web site on the server software, acting as a client
#yum-y Install Links
#links 192.168.1.3 can open web pages
CTRL +C Exit Web page
=========================== to here the most basic Apache service is configured to complete the =================
This article is from the "New Network Society Blog" blog, please be sure to keep this source http://xwxhvip.blog.51cto.com/13020757/1980377
CENTOS7 's most basic Apache service