作者:流浪1种无奈 | 来源:互联网 | 2014-05-23 14:01
redhat9编译安装apache2.2.23(1)获取apache源码:wgethttp://archive.apache.org/dist/httpd/httpd-2.2.23.tar.gz(2)解压:www.2cto.comtar-zxvfhttpd-2.2.23.tar.gz(3)编译安装:cdhttpd-2.
redhat9编译安装apache2.2.23
wget http://archive.apache.org/dist/httpd/httpd-2.2.23.tar.gz
(2)解压: www.2cto.com
tar -zxvf httpd-2.2.23.tar.gz (3)编译安装:
cd httpd-2.2.23
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
(4)启动:
cd /usr/local/apache2
./bin/httpd -k start
(5)在
浏览器地址输入linux主机的IP,回车后出现“it works”,说明安装成功。