码迷,mamicode.com
首页 > Web开发 > 详细

安装apache2.2

时间:2016-03-31 18:49:39      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

# 安装
#
cd /usr/local/src # wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.31.tar.gz # tar zxvf httpd-2.2.31.tar.gz # cd httpd-2.2.31 # ./configure --prefix=/usr/local/src/apache # make && make install

修改配置指定service

# cp /usr/local/src/apache/bin/apachectl /etc/init.d/httpd
# vim /etc/init.d/httpd 

修改第二行,在第二行添加

# chkconfig:- 85 15
# description: Apache is a World Wode Web server.It is used to server
# HTML files and CGI

修改httpd.conf

# vim /usr/local/src/apache/conf/httpd.conf 

添加

ServerName localhost:80

启动

# service httpd start

 

安装apache2.2

标签:

原文地址:http://www.cnblogs.com/lixingbaophp/p/5342132.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!