CentOS源码安装Apache 2.2.17
- #安装需要的库
- 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
相关推荐
IT之家 2020-03-11
graseed 2020-10-28
zbkyumlei 2020-10-12
SXIAOYI 2020-09-16
jinhao 2020-09-07
impress 2020-08-26
liuqipao 2020-07-07
淡风wisdon大大 2020-06-06
yoohsummer 2020-06-01
chenjia00 2020-05-29
baike 2020-05-19
扭来不叫牛奶 2020-05-08
hxmilyy 2020-05-11
黎豆子 2020-05-07
xiongweiwei00 2020-04-29
Cypress 2020-04-25
冰蝶 2020-04-20