安装httpd

来源:互联网 发布:软件行业协会好吗 编辑:程序博客网 时间:2024/05/23 15:39
先安装 apr、apr-util。
可从http://apr.apache.org/下载

apr:

# tar xf apr-*.tar.bz2
# cd apr-*
#./configure --prefix=/usr/local/apr
# make && make install


apr-util

# tar xf apr-util-*.tar.bz2
# cd apr-util-*
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/

# make && make install


安装libpcre(若无缺少,可跳过)

可从http://www.pcre.org/下载

#tar xf pcre-*.tar.bz2
#cd pcre-*
#./configure --prefix=/usr/local/pcre --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre
#make && make install


安装openssl(若无缺少,可跳过)

可从ftp://ftp.openssl.org/source/下载

#tar -zxf openssl-*.tar.gz
#cd openssl-*
#./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl/config
#make && make install
#./config share --prefix=/usr/local/ssl --openssldir=/usr/local/ssl/config
#make && make install


安装httpd

可从http://httpd.apache.org/下载

# tar xf httpd-2.4.16.tar.bz2
# cd httpd-2.4.16
#./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modules=all --enable-mpms-shared=all --with-mpm=event --with-ssl=/usr/local/ssl/
# make && make install


0 0
原创粉丝点击