二進制編譯安裝

1.先將httpd-2.4.34.tar.gz文件添加到Xshell裏面
2.安裝編譯文件和庫
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
3.安裝相應的包
yum install apr apr-util apr-devel apr-util-devel
4.解壓文件
tar jxf http-2.4.34.tar.gz
5.預編譯文件安裝目錄
cd http-2.4.34
./configure --prefix=usr/local/apache2 --disable-proxy
6.進行:make && make install
7.安裝的文件放在了 /usr/local/apache2目錄下
cd /usr/local/apache2
8.啓動服務
/usr/local/apache2/bin/apachectl start
9.查看進程
ps -ef | grep httpd
10.清空防火牆
iptables -F/X/L
11.網頁訪問 (ip)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章