Apache 安装的2种方法
生活随笔
收集整理的這篇文章主要介紹了
Apache 安装的2种方法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1.編譯方法1
./configure--prefix=/usr/local/apache\
--with-mpm=prefork?\
--enable-so?--enable-modules="all"\
--enable-mods-shared="all"
make&&?make
cpsupport/apachectl/etc/init.d/httpd
chmod+x?/etc/init.d/httpd
2.編譯方法2
./configure--prefix=/usr/local/apache\
--enable-so?\
--enable-rewrite?\
--with-mpm=worker
make&&?makeinstall
3.查看Apache?靜態(tài)模塊
/usr/local/apache/bin/apachectl-l
4.查看動態(tài)模塊
ls/usr/local/apache/modules
5.啟動Apache
/usr/local/apache/bin/apachectlstart
轉(zhuǎn)載于:https://blog.51cto.com/jwh5566/1356954
總結(jié)
以上是生活随笔為你收集整理的Apache 安装的2种方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。