浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

How to install Apache Server on CentOS RedHat Linux, How to configure Apacahe Server on CentOS RedHat Linux | Antoine Solutions Development

Apache Server

Apache HTTP Server is an open-source HTTP server for modern operating systems including UNIX and Windows NT.  For more information on Apache HTTP Server, you can visit their website at httpd.apache.org.

Version

This documentation was written for Apache HTTP Server 2.2.3 but may be usefull with other versions.

How to install Apache Server on CentOS, RedHat, Linux

  1. Install Apache HTTP Server

    yum install httpd

    Note: This is typically installed with CentOS by default

How to configure Apache Server on CentOS, RedHat, Linux

  1. Set the apache service to start on boot

    chkconfig --levels 235 httpd on
  2. Enable name-based virtual hosting on port 80
    1. Open the httpd configuration file located at /etc/httpd/conf/httpd.conf
    2. Un-comment the line containing the text NameVirtualHost *:80
    3. Save the file
    4. Restart the Apache HTTP Server daemon

      service httpd restart

      Note: Ignore the "NameVirtualHost *:80 has no VirtualHosts" warning for now.
posted on 2012-02-23 20:11  lexus  阅读(398)  评论(0编辑  收藏  举报