winxp下tomcat+jk+iis5的整合
最近公司讓做一個(gè)企業(yè)網(wǎng)站,需要有一個(gè)論壇,數(shù)據(jù)庫要用access數(shù)據(jù)庫,在google找了找,發(fā)現(xiàn)動(dòng)網(wǎng)的支持access,而我的除去論壇的程序是用java做的,用的tomcat服務(wù)器,要想同時(shí)運(yùn)行jsp和asp,就需要把tomcat和iis整合起來。關(guān)于tomcat的與tomcat的整合,網(wǎng)上的文章大多都是tomcat+jk2+iis,但是現(xiàn)在由于jk2配置比較復(fù)雜,apache已近不再開發(fā),進(jìn)入維護(hù)階段?,F(xiàn)在推薦使用的是jk,現(xiàn)在的jk的最新版本是1.2.23。本文是作者在整合過程中的心得,希望給那些遇到這方面問題的朋友們一個(gè)幫助,也讓自己有備用。閑話少敘,言歸正傳!
第一步:準(zhǔn)備相關(guān)的軟件
1.下載jdk,并安裝;(如何下載和安裝就不講了,這不是本文的重心。)
2.下載tomat并安裝(tomcat下載解壓版的和exe安裝版的都行,本人用的是解壓版的,版本 tomcat5.5.20)
3.下載安裝iis,如果是服務(wù)器操作系統(tǒng)的應(yīng)該已經(jīng)安裝好了,winxp的默認(rèn)是不安裝的。本人用的是iis5.1
4.下載jk最新版本,一個(gè)dll文件isapi_redirect.dll
第二步:開始整合配置
1.把isapi_redirect.dll作為isapi篩選器安裝
2.為 isapi_redirect.dll創(chuàng)建一個(gè)虛擬目錄,虛擬目錄的名稱為jakarta(不能隨意,只能是這個(gè)),指向isapi_redirect.dll存放的目錄。
3.編寫isapi_redirect.properties文件,該文件的文件名必須和isapi_redirect.dll的名字一樣,只是擴(kuò)展名不同。
并且必須和isapi_redirect.dll放在同一目錄里。
以下是我的文件的內(nèi)容。
# Configuration file for the Jakarta ISAPI Redirector# The path to the ISAPI Redirector Extension, relative to the website# This must be in a virtual directory with execute privilegesextension_uri=/jakarta/isapi_redirect.dll# Full path to the log file for the ISAPI Redirectorlog_file=D:\apache-tomcat-5.5.20\logs\isapi_redirect.log# Log level (debug, info, warn, error or trace)log_level=info# Full path to the workers.properties fileworker_file=D:\apache-tomcat-5.5.20\conf\workers.properties
# Full path to the uriworkermap.properties fileworker_mount_file=D:\apache-tomcat-5.5.20\conf\uriworkermap.properties4.編寫worker.properties屬性文件。
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。