Linux鍦ㄧ嚎瀹夎Tomcat
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux鍦ㄧ嚎瀹夎Tomcat相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/red' title='red'>red
esc etc 鎵ц direct des lin att 绾у埆1. 涓嬭浇tomcat锛?br />#wget http://apache.fayea.com/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
2. 灏唗omcat鏀剧疆鍒?/ server / tomcat / 鐩綍涓?br />#mv apache-tomcat-7.0.54.tar.gz / server / tomcat /
3. 瑙e帇缂╋細
tar -xvzf /server/tomcat/apache-tomcat-7.0.54.tar.gz
4. 璁剧疆tomcat寮€鏈鸿嚜鍚姩锛岀紪杈?server/tomcat/apache-tomcat-7.0.54/bin/startup.sh
# vi /server/tomcat/apache-tomcat-7.0.54/bin/startup.sh
鍔犲叆濡備笅琛岋細
#chkconfig: 2345 80 90
#description:tomcat auto start
#processname: tomcat
chkconfig鏄tomcat浠ervice鏂瑰紡杩愯锛岃繖琛岃〃绀虹己鐪佸惎鍔ㄧ殑杩愯绾у埆浠ュ強鍚姩鍜屽仠姝㈢殑浼樺厛绾э紝濡傝鏈嶅姟缂虹渷涓嶅啀浠讳綍杩愯绾у惎鍔紝鍒欎互 - 浠f浛杩愯绾у埆銆傛渚嬪湪tomcat涓〃绀鸿剼鏈湪杩愯绾?銆?銆?銆?鍚姩锛屽惎鍔ㄤ紭鍏堟潈涓?0锛屽仠姝紭鍏堟潈涓?0銆?/p>
璇€€娉曪細chkconfig [--add][--del][--list][绯荤粺鏈嶅姟] 鎴?chkconfig [--level <绛夌骇浠e彿>][绯荤粺鏈嶅姟][on/off/reset]
description琛屽鏈嶅姟杩涜鎻忚堪.
5. 灏唗omcat鍔犲叆寮€鏈鸿嚜鍚姩
# vi /etc/rc.d/rc.local
鍔犲叆濡備笅鍐呭锛?br />/server/tomcat/apache-tomcat-7.0.54/bin/startup.sh start
鎵ц# /server/tomcat/apache-tomcat-7.0.54/bin/startup.sh 鍚姩tomcat锛?br />鎵ц# /server/tomcat/apache-tomcat-7.0.54/bin/shutdown.sh 鍏抽棴tomcat
tomcat榛樿鐩戝惉8080绔彛锛屽鏋滆淇敼绔彛锛屾寜濡備笅姝ラ淇敼锛?/p>
# vi /server/tomcat/apache-tomcat-7.0.54/conf/server.xml
鎵惧埌
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
淇敼涓猴細
<Connector port="9080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector executor="tomcatThreadPool"
port="9080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
以上是关于Linux鍦ㄧ嚎瀹夎Tomcat的主要内容,如果未能解决你的问题,请参考以下文章
鍦ㄧ嚎楠岃瘉鐮佸吋鑱?0鍏?娆?骞村簳浜嗚繕涓嶅姫鍔涘皾璇曚竴娆★紵
Visio瀹夎 | Microsoft Visio 2019