歡迎您光臨本站 註冊首頁

yum安裝tomcat問題求解?(結貼,問題解決)

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

yum安裝tomcat問題求解?(結貼,問題解決)

1.在 我把redhat的所有rpm文件製成iso文件,並掛到var/www/html/rhel5下面,
2./etc/yum.repos.d目錄下建立一個名為update.repo
update.repo內容如下


name=base RPM Repository for RHEL5
baseurl=http://10.12.6.145/rhel5/
enabled=1
gpgcheck=0

3. 將/usr/lib/python2.4/site-packages/yum/yumRepo.py文件中的語句「remote = url + 『/』 + relative」,修改為「remote = 」http://10.12.6.145/rhel5/
「 + 『/』 + relative」 。
4 使用命令「yum clean all」清除yum的緩存 。
5 使用命令「yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps」下載安裝Tomcat服務及關聯程序 。

當運行步驟五的時候出現下面錯誤
# yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
http://10.12.6.145/rhel5/repodata/repomd.xml: HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: base

不知道哪裡除了問題,本機ip 10.12.6.145 默認網站位置 /var/www/html,網站頁面可以打開。

[ 本帖最後由 evan_wan 於 2009-8-6 11:45 編輯 ]
《解決方案》

我還真沒這麼裝過.我都是直接下載下來.配置一下jdk配置一下server.xml就啟動了.
《解決方案》

回復 #1 evan_wan 的帖子

實際上tomcat  從apache的站點上下載bin格式的進行deploy也是很簡單的
主要是這個與apache的結合上建立和使用mod_jk的技巧上是很大的
《解決方案》

http://hi.baidu.com/xieqi2006/blog/item/bce85b16ae4c631f972b439b.html
樓主參考下
《解決方案》

1. 首先亂改 yum source code 該方式是錯誤的,不應該修改

2. 沒有 repodata/ 目錄結構,你得先使用 createrepo 建立這樣資訊提供使用。


cd /path/rhel5
createrepo .

[火星人 ] yum安裝tomcat問題求解?(結貼,問題解決)已經有489次圍觀

http://coctec.com/docs/service/show-post-21296.html