隨筆 - 0, 文章 - 264, 評論 - 170, 引用 - 0

          導航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          留言簿(6)

          隨筆分類

          文章分類

          文章檔案

          AI

          android+移動開發

          apache等開源類包,工具相關

          cdn

          concurrent

          C語言

          git、svn等工具使用

          groovy、grails

          Hadoop、Storm、Spark大數據相關

          hibernate、JPA等持久化技術

          html,dom,js,css、ext、mui等前端、移動前端相關

          HTTP、HTTPS、TCP、UDP等協議相關

          IM、openfire

          Java基礎

          java性能優化

          jquery

          linux相關

          lucene、solr等搜索技術相關

          maven gradle ant Jenkins自動化構建與持續集成

          memcache

          mongodb

          nginx、squid、haproxy、varnish

          OLAP

          python、shell、perl、php

          redis

          rmi相關

          spring

          struts、webwork

          tcp/ip

          tomcat,jsp,servlet相關

          velocity等實用工具相關

          業務相關

          互聯網安全、過濾、網絡

          修煉

          其他

          區塊鏈

          壓力、性能測試相關

          地圖相關

          基礎

          多線程

          開發工具相關

          數據庫

          架構

          移動互聯網

          設計模式

          搜索

          •  

          最新評論

          apache服務器安裝配置錯誤集錦

          1、apache 配置、編譯、安裝完畢后,啟動apache :apachectl start,報錯如下:
          httpd: Syntax error on line 140 of /usr/local/apache2/conf/httpd.conf: Cannot load
          /usr/local/apache2/modules/mod_dir.so into server: /usr/local/apache2/modules/mod_dir.so: undefined symbol: apr_array_clear
          解決辦法:
          重新配置、編譯與安裝apache,在configure的時候,帶上選項:--with-included-apr。
          重新配置、編譯與安裝的步驟如下:
          .cd httpd.2.4.6
          .make clean
          ./configure --prefix=/usr/local/apache  --enable-so –enable-mods-shared=most --with-mpm=worker --with-apr=/usr/local/apr/   --with-apr-util=/usr/local/apr-util   --with-pcre=/usr/local/pcre    --with-included-apr
          .make
          .make install

          2、啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain name,具體為:
          httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
          問題原因與解決辦法:這一般是由于本機DNS設置錯誤或不想連接外網,所以故意不設置導致成的。解決辦法如下:
          [root@server conf]# vi httpd.conf
          #ServerName www.example.com:
          80
          ServerName localhost:
          80
          注意,端口號要與實際啟動的端口號,即Listen配置相同。若啟動了多個Listen實例,則需要對應的配置多個ServerName與之相對應,否則還會報錯。

          參考鏈接:
          http://www.2cto.com/os/201201/117797.html
          http://hi.baidu.com/zeldady/item/96f1ae30742006c31a969631

          3、源碼編譯apache報錯:
          configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

          解決辦法:
          將APR和APR-util源碼下載,解壓放到httpd-2.4.3/srclib里面,并去除版本號
          cp -r apr-1.4.6 httpd-2.4.3/srclib/apr
          cp -r apr-util-1.4.1 httpd-2.4.3/srclib/apr-util

          參考:
          http://blog.sina.com.cn/s/blog_a45d5a3a01016ycc.html

          posted on 2013-09-14 21:33 小一敗涂地 閱讀(351) 評論(0)  編輯  收藏 所屬分類: tomcat、apache、jboss等服務器相關

          主站蜘蛛池模板: 舟曲县| 五家渠市| 乌海市| 淮滨县| 淄博市| 会昌县| 武鸣县| 同仁县| 育儿| 新建县| 清水县| 平泉县| 余姚市| 岳池县| 九龙坡区| 汨罗市| 灵台县| 会泽县| 临沧市| 信丰县| 石林| 临城县| 谢通门县| 舞阳县| 建湖县| 张北县| 丹棱县| 福鼎市| 聂荣县| 库伦旗| 镇平县| 曲靖市| 凤山市| 四川省| 三河市| 友谊县| 徐州市| 抚州市| 深圳市| 安顺市| 凯里市|