#安装需要的库
yum -y install zlib-devel
cp /home/root/httpd-2.2.17.tar.gz /usr/local/src
cd /usr/local/src
tar xzvf httpd-2.2.17.tar.gz
./configure --prefix=/usr/local/apache2 --enable-so --enable-threads --with-mpm=worker --enable-cache --enable-rewrite=shared -enable-deflate=shared --enable-expires=shared
make
make install #启动apache /usr/local/apache2/bin/apachectl start #若出现notice如httpd: Could not reliably determine the server"s fully qualified domain name, using 127.0.0.1 for ServerName vi /usr/local/apache2/conf/httpd.conf 修改ServerName那行为:ServerName localhost:80 /usr/local/apache2/bin/apachectl restart Linux(CentOS)系统各个目录的作用详解Linux下的QT SDK安装相关资讯 CentOS
- CentOS虚拟机NAT静态IP设置 (07/04/2013 17:09:32)
- CentOS 格式化新硬盘并设置开机自 (07/04/2013 16:50:50)
- 服务器为何用CentOS不用Ubnutu (02/24/2013 15:19:10)
| - CentOS /usr/libexec/gconf-sanity (07/04/2013 17:07:42)
- 为什么我们选择CentOS而不是Debian (06/06/2013 06:19:40)
- 在CentOS下搭建Android 开发环境 (02/18/2013 09:14:14)
|
本文评论 查看全部评论 (0)