发布网友 发布时间:2022-02-26 21:24
共1个回答
热心网友 时间:2022-02-26 22:54
apache/httpd安装
下载地址:http://httpd.apache.org/
1.安装httpd:
# tar zxvf httpd-2.4.10.tar.gz
# cd httpd-2.2.11
# ./configure --prefix=/usr/local/apache --enable-so
//编译时加上加载模块参数--enable-so
# make
# make install
可能回缺失的包:
2. 安装apr
wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.1.tar.gz
#
cd srclib/apr
#
./configure --prefix=/usr/local/apr
#
make
#
make install
3.安装apr-util
wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz
4.配置
更新配置:
vi
/usr/local/apache/conf/httpd.conf
5.启动
/usr/local/apache/bin/apachectl
start
6.访问:
http://192.168.2.137:8081/