二進制編譯httpd

第一步:php

作以前先刪掉httpd yum remove httpdlinux

查看服務啓動狀態 systemctl starus httpdc++

關閉服務 systemctl stop httpdapache

安裝編譯工具及庫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-develcurl

第二步:Ls 查看工具

第三步:url

安裝相應的包 yum install apr apr-util apr-devel apr-util-develspa

解壓文件 tar xzf httpd-2.4.34.tar.gzxml

cd httpd-2.4.34目錄下 編譯安裝目錄 ./configure --prefix=/usr/local/apache2 --disable-proxyblog

第四步:進行 make && make install

 

第五步:

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

ls查看

第六步:

啓動服務 /usr/local/apache2/bin/apachectl start

查看進程  ps -ef | grep httpd

第七步:清空防火牆設置 iptables -F

               iptables -X

               iptables -L

第八步:輸入ip進行網頁訪問

相關文章
相關標籤/搜索