linux 安裝apache
阿新 • • 發佈:2018-06-25
file -m err href 1.3 enable get tar.gz 圖片
APR and APR-Util包 下載地址:http://apr.apache.org
PCRE 下載地址:http://www.pcre.org
Apache Server2.4 下載地址:http://httpd.apache.org
1. 安裝apr-1.3.2.tar.gz
- # tar zxvf apr-1.3.2.tar.gz
- # cd apr-1.3.2
- # ./configure
- # make
- # make install
//apr被安裝在/usr/local/apr下
2. 安裝apr-util-1.3.2.tar.gz
- # tar zxvf apr-util-1.3.2.tar.gz
- # cd apr-util-1.3.2
- # ./configure --with-apr=/usr/local/apr // --with-apr=/usr/local/apr 指定APR安裝路徑
- # make
- # make install
若make install 出現 error: expat.h: No such file or directory錯誤,則安裝expat庫:yum install expat-devel
3、安裝httpd-2.4.17.tar.gz
- # tar zxvf httpd-2.4.17.tar.gz
- # cd httpd-2.4.17.tar.gz
- # ./configure --prefix=/usr/common/apache --enable-mods-shared=all
- # make
- # make install
linux 安裝apache