二进制编译httpd

第一步:

做之前先删掉httpd yum remove httpd

查看服务启动状态 systemctl starus httpd

关闭服务 systemctl stop 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

第二步:Ls 查看

第三步:

安装相应的包 yum install apr apr-util apr-devel apr-util-devel

解压文件 tar xzf httpd-2.4.34.tar.gz

cd httpd-2.4.34目录下 编译安装目录 ./configure --prefix=/usr/local/apache2 --disable-proxy

第四步:进行 make && make install

 

第五步:

安装的文件放在/usr/local/apache2

ls查看

第六步:

启动服务 /usr/local/apache2/bin/apachectl start

查看进程  ps -ef | grep httpd

第七步:清空防火墙设置 iptables -F

               iptables -X

               iptables -L

第八步:输入ip进行网页访问

posted @ 2018-09-12 16:47  雪雪!  阅读(113)  评论(0编辑  收藏  举报