二进制编译

命令代码:
yum install apr apr-util apr-devel apr-util-devel 安装相应的 包
tar xzf httpd-2.4.34.tar.gz 解压文件
cd httpd-2.4.34 进去httpd-2.4.34下
./configure --prefix=/usr/local/apache2 --disable-proxy 预编译 的安装目
make && make install
cd /bin/ 进入/bin 下
ls
cd
cd /usr/local/apache2
ls
/usr/local/apache2/bin/apachectl start 启动服务
ps -ef | grep httpd 查看进程
iptables –F 以下三条:清空防火墙设置
iptables -X
iptables -L
在网页输入http://IP地址,链接,成功
二进制编译

猜你喜欢

转载自blog.51cto.com/13955540/2174428