Centos7 install httpd

Source: Internet
Author: User

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.