二进制编译httpd

做之前systemct stop httpd
Yum remove httpd编译前安装编译工具
yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp libxml2 libxml2-devel libXpm* libtiff libtiff* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl php-common php-gd policycoreutils telnet t1lib t1lib* nasm nasm* wget zlib-devel
二进制编译安装(下载tar包地址:http://www.apache.org/dist/httpd/
安装相应包:
yum install apr apr-util apr-devel apr-util-devel
ls
解压文件:
tar xzf httpd-2.4.34.tar.gz
ls
cd httpd-2.4.34(切换到httpd_2.4.34)
预编译安装目录:
./configure –prefix=/usr/local/apache2 –disable-proxy
进行:make && make install
切换到此目录下
cd /usr/local/apache2
ls
启动服务/usr/local/apache2/bin/apachectl start
查看进程:
ps -ef |grep httpd
iptables -F/X/L 清空防火墙设置
iptables -F
iptables -X
setenforce
关闭防火墙进行网页访问
这里写图片描述
这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值