下载[root@localhost Mysql]# cd /usr/local/src/[root@localhost src]# wget Http://syslab.comsenz.com/downlo
下载
[root@localhost Mysql]# cd /usr/local/src/
[root@localhost src]# wget Http://syslab.comsenz.com/downloads/linux/httpd-2.2.16.tar.gz
可进入https://GitHub.com/aminglinux/resource/wiki 这个链接下载包
解压:
[root@localhost src]# tar zxvf httpd-2.2.16.tar.gz
配置编译参数:
[root@localhost src]# cd httpd-2.2.16
[root@localhost httpd-2.2.16]# ./configure \ 编译
--prefix=/usr/local/apache2 \ 指定安装目录
--with-included-apr \ 所依赖的包
--enable-so \ 表示启动Dso
--enable-deflate=shared \ 表示共享的方式编译
--enable-expires=shared \
--enable-rewrite=shared \
--with-pcre 正则相关的库
编译:
[root@localhost httpd-2.2.16]# make
echo $? 检测编译是否成功
安装:
[root@localhost httpd-2.2.16]# make install
echo $? 检测编译是否成功
启动apache服务:
/usr/local/apache2/bin/apachect1 start 注:如果起不来请使用:killall hpptd 命令 杀死结束进程 在重启
/usr/local/apache2/bin/apachectl -l 动态模块
/usr/local/apache2/bin/apachectl -M 静态模块
--结束END--
本文标题: apache编译安装
本文链接: https://www.lsjlt.com/news/45523.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-29
2024-04-28
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0