欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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 $?命令檢查是否有錯誤,當輸出結(jié)果為0時表示沒有錯誤。

#echo $? 0

#make #make install

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

啟動Apache #apachectl start

設置Apache開機自啟動 #vi /etc/rc.d/rc.local 增加一行 /sbin/apachectl start

或者將httpd服務添加到ntsysv服務管理工具 #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可以看到剛才編寫的服務描述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)文章

  • 在Linux服務器下啟動tomcat的三種方式

    在Linux服務器下啟動tomcat的三種方式

    這篇文章主要介紹了在Linux服務器下啟動tomcat的三種方式,Linux作為一種穩(wěn)定安全的服務器一直受到業(yè)界歡迎,那么如何啟動部署在服務器上的Tomcat呢,這篇文章帶我們來了解
    2023-03-03
  • linux通過掛載系統(tǒng)光盤搭建本地yum倉庫的方法

    linux通過掛載系統(tǒng)光盤搭建本地yum倉庫的方法

    linux通過掛載系統(tǒng)光盤搭建本地yum倉庫,使用yum命令加上 list 參數(shù)就可以查看倉庫了。本文介紹的非常詳細,具有參考借鑒價值,感興趣的朋友一起看看吧
    2016-10-10
  • Linux超詳細gcc升級全過程

    Linux超詳細gcc升級全過程

    大家好,本篇文章主要介紹了Linux超詳細gcc升級全過程,感興趣的同學趕快來看一看吧,對你有幫助的話記得收藏,方便下次瀏覽
    2021-11-11
  • Ubuntu 系統(tǒng)中文顯示亂碼的問題解決

    Ubuntu 系統(tǒng)中文顯示亂碼的問題解決

    最近在工作中發(fā)現(xiàn)在Ubuntu 系統(tǒng)中出現(xiàn)中文亂碼,通過查找相關(guān)的資料發(fā)現(xiàn)可能是因為系統(tǒng)沒有配置中文字符編碼的原因,下面這篇文章就來詳細介紹了Ubuntu系統(tǒng)中文顯示亂碼的問題解決方法,需要的朋友可以參考借鑒,下面來一起看看吧。
    2017-02-02
  • LNMP添加、刪除虛擬主機及偽靜態(tài)使用教程

    LNMP添加、刪除虛擬主機及偽靜態(tài)使用教程

    本文主要介紹LNMP一鍵安裝包添加虛擬主機、刪除虛擬主機及如何使用偽靜態(tài),感謝作者發(fā)布這么好用的東東
    2013-06-06
  • 在 Linux 上用 DNS 實現(xiàn)簡單的負載均衡的方法

    在 Linux 上用 DNS 實現(xiàn)簡單的負載均衡的方法

    這篇文章主要介紹了在 Linux 上用 DNS 實現(xiàn)簡單的負載均衡的方法,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-08-08
  • Ubuntu cron日志開啟與查看的實現(xiàn)步驟

    Ubuntu cron日志開啟與查看的實現(xiàn)步驟

    這篇文章主要介紹了Ubuntu cron日志開啟與查看的實現(xiàn)步驟的相關(guān)資料,希望通過本文能幫助到大家,讓大家實現(xiàn)這樣的功能,需要的朋友可以參考下
    2017-10-10
  • centos7.6批量增加修改刪除虛擬網(wǎng)卡操作介紹

    centos7.6批量增加修改刪除虛擬網(wǎng)卡操作介紹

    大家好,本篇文章主要講的是centos7.6批量增加修改刪除虛擬網(wǎng)卡操作介紹,感興趣的同學趕快來看一看吧,對你有幫助的話記得收藏一下
    2021-12-12
  • CentOS下安裝Memcached和PHP Memcached擴展

    CentOS下安裝Memcached和PHP Memcached擴展

    今天小編就為大家分享一篇關(guān)于CentOS下安裝Memcached和PHP Memcached擴展,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-03-03
  • Linux 創(chuàng)建修改刪除用戶和組的方法

    Linux 創(chuàng)建修改刪除用戶和組的方法

    這篇文章主要介紹了Linux 創(chuàng)建修改刪除用戶和組的方法,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-02-02

最新評論