日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

编译安装httpd

發布時間:2025/6/15 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 编译安装httpd 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

httpd-2.4 編譯安裝


?①依賴于更高版本的apr和apr-util。apr全稱為apache portable runtime(一個讓apache跨平臺的 ? ? 工具,底層庫)

?②依賴于pcre-devel

安裝包

1、關閉當前系統的httpd服務


# service httpd stop 停止服務 # chkconfig httpd off 開機不啟動


2、安裝pcre-devel


#yum -y install pcre-devel


3、編譯安裝apr-1.5.0


#tar xf apr-1.5.0.tar.bz2 #cd apr-1.5.0 #./configure --prefix=/usr/local/apr #make && make install

4、編譯安裝apr-util-1.5.3


# tar xf apr-util-1.5.3.tar.bz2 # cd apr-util-1.5.3 # ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr # make && make install# tar xf apr-util-1.5.3.tar.bz2 # cd apr-util-1.5.3 # ./configure # make && make install


5、 編譯安裝httpd


# tar xf httpd-2.4.9.tar.bz2 # cd httpd-2.4.9 # ./configure --help # ./configure --prefix=/usr/local/apache --sysconfdir= /etc/httpd24 --enable-so --enable-ssl --enable-cgi --en able-rewrite --with-zlib --with-pcre --with-apr=/usr/lo cal/apr --with-apr-util=/usr/local/apr-util --enable-mo dules=most --enable-mpms-shared=all -with-mpm=event # make && make install


6、編譯后的配置

? 6.1 導出頭文件 ?

# ln -sv /usr/local/apache/include /usr/include/httpd


? 6.2 導出庫文件

# ln -sv /usr/local/apache/include /usr/include/httpd


? 6.3 配置二進制文件


# vim /etc/profile.d/httpd.shexport PATH=/usr/local/apache/bin:$PATH


? 6.4 配置man手冊


# vim /etc/man.configMANPATH /usr/local/apache/man # man -M /usr/local/apache/man httpd


? 6.5 檢測


# apachectl start # apachectl stop # apachectl restart # ss -ntl


轉載于:https://blog.51cto.com/jungege/1380147

總結

以上是生活随笔為你收集整理的编译安装httpd的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。