linux 安裝apache、tomcat問題匯總

來源:互聯網
上載者:User

標籤:lis   min   監聽   for   匯總   compiler   127.0.0.1   操作   apach   

1.linux下安裝安裝pcre-8.32
./configure --prefix=/usr/local/pcre 出現以下錯誤
configure: error: You need a C++ compiler for C++ support

解決方案:

yum install -y gcc gcc-c++


2.apache 裝完後再瀏覽器輸入localhost地址,報httpd: Could not reliably determine the se...錯

解決方案:報此錯的原因是apache安裝目錄未配置。
進入apahce安裝目錄。,如我的地址為/resource/soft/httpd/conf, 用vi開啟httpd.conf 檔案,在非插入模式下 輸入命令 /listen, 把監聽地址改為127.0.0.1:1025
在非插入模式下 輸入命令 /ServerName, 把ServerName地址改為127.0.0.1:1025即可。

3.tomcat安裝完後正常啟動,但是本機無法開啟localhost
解決方案:1.查看tomcat安裝目錄下的log日誌,查詢報錯是啥
     2.查看jdk是否正確安裝成功了,輸入命令java -version,如果沒有安裝成功,再安裝一次
     3.查看 /etc/profile 下的設定檔是否正確,查詢jdk及tomcat的安裝地址是否準確。
     4.把tomcat的連接埠改為80,具體操作看 《linux下安裝tomcat+jdk》

linux 安裝apache、tomcat問題匯總

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.