apache從2.2.25升級到2.4.6關鍵過程記錄

在服務器上安裝了2.2後想升級到2.4,結果怎麼都安裝不上,最後指定配置文件後安裝成功。

2.2.25

./configure --prefix=/usr/local/apache --with-included-apr --enable-so
./configure --with-apxs=/usr/local/apache/bin/apxs
2.4.6
首先將apr apr-util pcre 拷貝到scrlib中
./configure --with-included-apr --with-pcre=/usr/local/pcre --enable-so

./configure --with-apxs=/usr/local/apache2/bin/apxs


/usr/local/apache2/bin/apachectl -f /usr/local/apache2/conf/httpd.conf
停止服務:/usr/local/apache2/bin/httpd -k stop -f /usr/local/apache2/conf/httpd.conf
開啓服務:/usr/local/apache2/bin/httpd -k start -f /usr/local/apache2/conf/httpd.conf


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章