安裝配置Tomcat + Apache + mod_jk(轉)
安裝配置Tomcat + Apache + mod_jk(轉)[@more@]方案優勢:配置簡單高效,避免了編譯webapp.so的麻煩方案缺點:linux下的mod_jk也很難找.1.安裝JDK,這個很簡單,執行./j2sdk1.4.1_02.bincp -R j2sdk1.4.1_02/ /usr/local/j2sdk141export JAVA_HOME=/usr/local/j2sdk141export PATH=$PATH:/usr/local/j2sdk141/bin:/usr/local/j2sdk141/jre/binexport CLASSPATH=="./:/usr/local/j2sdk141/lib:/usr/local/j2sdk141/jre/lib" #設定環境變數2.安裝Tomcat4.1.29,將下載下來的tomcat1.4.29.tar.gz解壓複製到相應的目錄即可tar xvzf tomcat4.1.29.tar.gzcp tomcat4.1.29 /usr/local/tomcat4export CATALINA_HOME=/usr/local/tomcat4 # 設定環境變數3.安裝apache,redhat都自帶的,我裝的是redhat9自帶的2.40.204.裝mod_jk,我裝的是mod_jk-tomcat4.1.18-rh80.i386.rpm,支援tomcat4.xx和httpd2.xx系列的版本.注意,只有將jdk和tomcat裝在特定的目錄下mod_jk才能檢測到,所以這裡我們強制安裝rpm -i --nodeps mod_jk.rpm好了,現在需要的軟體都安裝完了,剩下的就是配置的工作.5.mod_jk的配置cd /etc/httpd/conf/vi mod_jk.properties 修改workers.tomcat_home為tomcat的安裝目錄,workers.java_home為jdk的安裝目錄,需要注意的是該檔案預設連線tomcat的埠是8109,但實際上在tomcat上預設的是8009,所以這裡也要修改一下.workers.tomcat_home=/usr/local/tomcat4workers.java_home=/usr/local/j2sdk141worker.list=ajp13worker.ajp13.port=8009worker.ajp13.host=localhostworker.ajp13.type=ajp136.apache的配置vi httpd.conf在LoadModule處增加下面一行LoadModule jk_module modules/mod_jk.so另外要增加mod_jk的配置檔案JkWorkersFile /etc/httpd/conf/mod_jk.propertiesJkLogFile /var/log/httpd/mod_jk.logJkLogLevel error 增加要透過mod_jk匹配的檔案型別JkMount /*.jsp ajp13JkMount /*.do ajp13JkMount /servlet/* ajp13 設定apache預設語言為簡體中文 AddDefaultCharset GB23127.將tomcat和apache的根目錄設為相同目錄,啟動tomcat,apache看看
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-938120/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- GCC4.1 + apache2+tomcat5 + mod_jk整合(轉)GCApacheTomcat
- apache tomcat 安裝ApacheTomcat
- 配置Apache Server + Tomcat (轉)ApacheServerTomcat
- 安裝配置篇--apache+resin(轉)Apache
- apache2 安裝與配置(轉)Apache
- Apache Tomcat9.0.6免安裝版配置相關ApacheTomcat
- apache+tomcat配置指南(轉)ApacheTomcat
- FreeBSD下安裝Apache+PHP+MySQL+Tomcat(轉)ApachePHPMySqlTomcat
- Tomcat配置安裝Tomcat
- apache httpd安裝 配置Apachehttpd
- Linux CentOS 7 下 Apache Tomcat 7 安裝與配置(心得)LinuxCentOSApacheTomcat
- Tomcat安裝與配置Tomcat
- TOMCAT+JIVE的安裝配置(支援中文) (轉)Tomcat
- CentOS-6.5-64bit 通過mod_jk連線Apache和TomcatCentOSApacheTomcat
- windows下Tomcat安裝配置WindowsTomcat
- CentOS下tomcat安裝配置CentOSTomcat
- Windows+Tomcat安裝配置WindowsTomcat
- redhat自帶apache2.0和tomcat4.1的安裝(轉)RedhatApacheTomcat
- [求教]FC4下安裝APACHE配置問題(轉)Apache
- Apache tomcat 配置總結ApacheTomcat
- mac平臺安裝配置TomCatMacTomcat
- Tomcat安裝與配置(筆記)Tomcat筆記
- [轉]在Mac系統中安裝配置Tomcat及和Eclipse 配置MacTomcatEclipse
- linux_apache_Subversion安裝配置LinuxApache
- 【高可用HA】Apache (4) —— Mac下配置Apache Httpd負載均衡(Load Balancer)之mod_jkApacheMachttpd負載
- apache 2.0.47 安裝筆記(轉)Apache筆記
- Jdk1.6+Tomcat6+Apache2+MySql5 安裝(Windows版) Jdk1.6+Tomcat6+Apache2+MySql5 安裝(Windows版)JDKTomcatApacheMySqlWindows
- 【高可用HA】Apache (2) —— Mac下安裝多個Apache Tomcat例項ApacheMacTomcat
- CentOS 7 yum安裝與配置 TomcatCentOSTomcat
- Centos安裝tomcat9及配置CentOSTomcat
- Linux(jdk+tomcat配置安裝)LinuxJDKTomcat
- Mac下配置免安裝的tomcatMacTomcat
- Linux下Tomcat的安裝配置LinuxTomcat
- windows下PHP與Apache的安裝配置WindowsPHPApache
- 給Tomcat,Apache配置gzip壓縮(HTTP壓縮)功能 (轉)TomcatApacheHTTP
- TOMCAT的安裝步驟 (轉)Tomcat
- apache安裝和調整效能安裝實踐(轉)Apache
- Apache使用mod_jk/mod_proxy模組實現代理、負載均衡的配置Apache負載