最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Apache遇到的問題 APR not found問題的解決方法

 更新時間:2013年07月08日 18:26:32   作者:  
checking for APR... no configure: error: APR not found . Please read the documentation

#./configure --prefix……檢查編輯環(huán)境時出現(xiàn):

checking for APR... no configure: error: APR not found .  Please read the documentation.

可以用./configure –help | grep apr 查看幫助。 --with-included-apr     Use bundled copies of APR/APR-Util --with-apr=PATH         prefix for installed APR or the full path to apr-config --with-apr-util=PATH    prefix for installed APU or the full path to 安裝APR(Apache Portable Runtime ) 下載:http://apr.apache.org/download.cgi

#cd /tmp/52lamp/ //源碼存放位置 #tar -zxvf apr-1.4.2.tar.gz //unzip -o apr-1.4.2.zip #cd apr-1.4.2 #./configure #make #make install

再次檢查編譯環(huán)境出現(xiàn)

checking for APR-util... no configure: error: APR-util not found .  Please read the documentation.

#./configure –help | grep apr-util --with-apr-util=PATH    prefix for installed APU or the full path to

下載:http://download.chinaunix.net/download/0001000/472.shtml #tar -zxvf apr-util-1.3.9.tar.gz #cd apr-util-1.3.9 #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr #make #make install

./configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出現(xiàn) configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

#./configure –help | grep pcre --with-pcre=PATH        Use external PCRE library

下載:http://sourceforge.net/projects/pcre #unzip -o pcre-8.10.zip #cd pcre-8.10 #./configure --prefix=/usr/local/pcre #make #make install

繼續(xù)安裝Apache/httpd,./configure 時加上參數(shù) --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre,這個問題就解決了

注意:Apache在安裝時不會檢查參數(shù)是否正確,錯誤的參數(shù)會直接被丟棄,不會報告給用戶。但可以使用echo $?命令檢查是否有錯誤,當(dāng)輸出結(jié)果為0時表示沒有錯誤。

#echo $? 0

#make #make install

復(fù)制Apache啟動文件 #cp /usr/local/httpd/bin/apachectl /sbin/

啟動Apache #apachectl start

設(shè)置Apache開機(jī)自啟動 #vi /etc/rc.d/rc.local 增加一行 /sbin/apachectl start

或者將httpd服務(wù)添加到ntsysv服務(wù)管理工具 #apachectl stop //關(guān)閉Apache以免不必要的麻煩 #cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd #vi /etc/rc.d/init.d/httpd 修改為 #!/bin/sh # #chkconfig: 345 85 15 //#不能省略,注意空格 #description: httpd for 52lamp 20101016 21:54 //任意字符串 # ......

第二行中345的含義: #       0 - operation completed successfully #       1 - #       2 - usage error #       3 - httpd could not be started #       4 - httpd could not be stopped #       5 - httpd could not be started during a restart

修改有關(guān)權(quán)限 #cd /etc/rc.d/init.d/ #chmod a+x httpd #chkconfig --add httpd

#ntsysv httpd已經(jīng)在列表中,按F1可以看到剛才編寫的服務(wù)描述httpd for 52lamp 20101016 21:54。

#apachectl start #ps -e |grep httpd 23247 ?        00:00:00 httpd 23248 ?        00:00:00 httpd 23249 ?        00:00:00 httpd 23251 ?        00:00:00 httpd 23252 ?        00:00:00 httpd

在瀏覽器中輸入127.0.0.1,看起來一切正常;但是局域網(wǎng)內(nèi)其他電腦不能訪問!

#service iptables stop

如果不想關(guān)閉防火墻,放開80端口即可。

#vi /etc/sysconfig/iptables 增加一行-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT #service iptables restart //重啟防火墻

現(xiàn)在一切OK

相關(guān)文章

  • Apache 內(nèi)容動態(tài)緩沖模塊 mod_cache應(yīng)用

    Apache 內(nèi)容動態(tài)緩沖模塊 mod_cache應(yīng)用

    mod_cache是apache中基于URI鍵的內(nèi)容動態(tài)緩沖(內(nèi)存或磁盤),從Apache2.2起,mod_cache和mod_file_cache將不再是試驗(yàn)?zāi)K,它們已經(jīng)足夠穩(wěn)定,可以用于實(shí)際生產(chǎn)中了。
    2013-10-10
  • linux服務(wù)監(jiān)控及運(yùn)維

    linux服務(wù)監(jiān)控及運(yùn)維

    本文通過詳細(xì)介紹安裝psutil包到查找操作系統(tǒng)所有服務(wù)進(jìn)行ID,提取監(jiān)控等內(nèi)容,接下來我們大家一起來學(xué)習(xí)吧
    2021-08-08
  • Linux中的計(jì)劃任務(wù)(crontab)使用方式

    Linux中的計(jì)劃任務(wù)(crontab)使用方式

    這篇文章主要介紹了Linux中的計(jì)劃任務(wù)(crontab)使用方式,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2025-04-04
  • Linux如何利用iptables屏蔽某些域名

    Linux如何利用iptables屏蔽某些域名

    這篇文章主要介紹了Linux如何利用iptables屏蔽某些域名問題,具有很好的參考價值,希望對大家有所幫助,
    2023-09-09
  • 一文教你如何自定義systemd開機(jī)啟動腳本

    一文教你如何自定義systemd開機(jī)啟動腳本

    systemd開機(jī)腳本是Linux系統(tǒng)不可或缺的組成部分,它負(fù)責(zé)協(xié)調(diào)和管理系統(tǒng)啟動過程中的各項(xiàng)任務(wù)和服務(wù),本文將詳細(xì)為大家介紹如何自定義systemd開機(jī)啟動腳本,通過本文你將能夠深入了解Linux啟動流程,并提升系統(tǒng)的效率和可靠性
    2023-07-07
  • Ubuntu下Sublime Text無法輸入中文最簡單的解決方案

    Ubuntu下Sublime Text無法輸入中文最簡單的解決方案

    今天小編就為大家分享一篇關(guān)于Ubuntu下Sublime Text無法輸入中文最簡單的解決方案,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2018-10-10
  • 利用logsave如何將命令輸出保存起來

    利用logsave如何將命令輸出保存起來

    logsave命令運(yùn)行給定的命令,并將命令的輸出信息保存到指定的日志文件中。下面這篇文章主要給大家介紹了關(guān)于利用logsave如何將命令輸出保存起來的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),需要的朋友可以參考下
    2018-05-05
  • bug分支和feature分支_動力節(jié)點(diǎn)Java學(xué)院整理

    bug分支和feature分支_動力節(jié)點(diǎn)Java學(xué)院整理

    這篇文章主要介紹了bug分支和feature分支,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-08-08
  • Linux與windows文件傳輸詳解及實(shí)例

    Linux與windows文件傳輸詳解及實(shí)例

    這篇文章主要介紹了Linux與windows文件傳輸詳解及實(shí)例的相關(guān)資料,需要的朋友可以參考下
    2017-03-03
  • linux Cron定時執(zhí)行帶參數(shù)的PHP代碼

    linux Cron定時執(zhí)行帶參數(shù)的PHP代碼

    前面有篇文章簡單介紹了了cPanel控制面板下如何使用時鐘守護(hù)作業(yè)的方法,但有時,我們希望執(zhí)行帶參數(shù)的php代碼,即如何傳遞參數(shù)給cron,飄易分享下方法如下
    2021-07-07

最新評論

额尔古纳市| 海口市| 尚志市| 常熟市| 拜泉县| 紫阳县| 东阿县| 敖汉旗| 师宗县| 齐河县| 弋阳县| 太保市| 施甸县| 荆州市| 黑山县| 枞阳县| 西充县| 黑龙江省| 镇平县| 沛县| 惠来县| 定州市| 嘉鱼县| 温州市| 蕉岭县| 安康市| 雷山县| 大宁县| 太白县| 砚山县| 东乡族自治县| 兴山县| 耒阳市| 酉阳| 迭部县| 峡江县| 鸡西市| 徐闻县| 枣强县| 大庆市| 共和县|