[1] install httpd for Centos7-media
# Yum -- enablerepo = centos7-media-y install httpdinstalled: httpd. x86_64. 4.6-18. el7.centos
[2] Start httpd, start
# Systemctl start httpd. service # systemctl enable httpd. serviceln-s '/usr/lib/systemd/system/httpd. service ''/etc/systemd/system/multi-user.target.wants/httpd. service'
[3] Test Access httpd
Http: // $ IP/
650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/76/wKiom1PV8T3iYzA4AAJMhFuQhJ0873.jpg "Title =" 2014-07-28 14-41-07_greenshot image editor-2014-07-28 14-39-46_apache HTTP server test page powered by ce.png "alt =" break "/> [4] configure httpd server
# Rm-F/etc/httpd/CONF. d/welcome. conf # Delete the default welcome page # vi/etc/httpd/CONF/httpd. conf86 serveradmin [email protected] 95 servername mariadb.carso.cn: 80151 AllowOverride all164 directoryindex index.html index. CGI index. add the following configuration file in PHP: ServerTokens prod # disable display or send apache version number keepalive on
# Systemctl restart httpd. Service
# Vi/var/www/html/index.html <HTML> <body> <Div style = "width: 100%; font-size: 40px; font-weight: bold; text-align: center; "> Welcom to Carson space! </Div> </body>
[5] Access Test
Welcom to Carson space!
This article is from the "Siberian wolf" blog, please be sure to keep this source http://kernal.blog.51cto.com/8136890/1531545