Linux涓嬪畨瑁匱omcat
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux涓嬪畨瑁匱omcat相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e6%8a%80%e6%9c%af%e5%88%86%e4%ba%ab' title='鎶€鏈垎浜?>鎶€鏈垎浜?/a> org startup 鎷疯礉 闃叉涔辩爜 璁块棶 centos 6 sudo nano
---------------------------------绠€鐗堬細
1銆佸埌 http://tomcat.apache.org/download-70.cgi 宸︿晶Download 鎵惧埌tomcat鐗堟湰骞剁偣鍑?/strong>
2銆佸彸渚т腑闂寸殑Core 鐐瑰嚮tar.gz 杩涜涓嬭浇锛屽ぇ姒?.2M
3銆佷笂浼犲埌linux鏈嶅姟鍣ㄧ殑 /usr/lib/apache-tomcat/ 涓嬶紝娌℃湁apache-tomcat 鍒欒嚜宸卞缓涓?/strong>
4銆佽В鍘?nbsp;sudo tar xvf apache-tomcat-7.0.64.tar.gz 绾㈣壊閮ㄥ垎鎹㈡垚浣犵殑鏂囦欢鍚?/strong>
5銆佸惎鍔?cd /usr/lib/apache-tomcat/bin 鎵ц ./startup.sh 鎴愬姛鍒欐樉绀?nbsp;Tomcat started
6銆佽闂?http://127.0.0.1:8080
---------------------------------瀹屾暣鐗堬細
鏈枃鍩轰簬CentOS 64浣?/strong>
浠庡畼缃戜笅杞?nbsp;http://tomcat.apache.org/download-70.cgi
2.灏哸pache-tomcat-7.0.64.tar.gz鎷疯礉鍒?usr/lib/apache-tomcat/鐩綍涓嬮潰锛岃繖閲屽鏋滄病鏈夋枃浠跺す锛屽垯鍒涘缓璇ユ枃浠跺す,鍛戒护:
mkdir apache-tomcat
sudo tar xvf apache-tomcat-7.0.64.tar.gz //瑙e帇缂╂枃浠?/strong>
3.褰撹В鍘嬫垚鍔熶互鍚庯紝鎴戜滑鐩存帴杩涘叆鍒皌omcat bin鐩綍涓€?/strong>
杈撳叆 ./startup.sh鍚姩Tomcat锛屽亣濡傛樉绀篢omcat started锛屽垯琛ㄦ槑鍚姩鎴愬姛銆?/strong>
4.杈撳叆鍦板潃锛屽亣濡傝兘澶熸垚鍔熺殑璁块棶鍒癟omcat鐨勯粯璁ょ晫闈㈣〃绀烘垚鍔?
Tomcat鐨勯粯璁ょ鍙d负8080
5.tomcat鎵€鍦ㄧ洰褰曚负/usr/lib/apache-tomcat/
鎵撳紑tomcat閰嶇疆鏂囦欢
sudo nano /usr/local/apache-tomcat/conf/server.xml
鎵撳紑Tomcat閰嶇疆鏂囦欢涔嬪悗鎸?8080 蹇€熸绱?/strong>
淇敼绔彛锛屾寜 i 杩涜锛屽皢8080 淇敼涓?80
涓轰簡鍚庨潰闃叉涔辩爜锛屾垜浠『渚垮姞涓奤RIEncoding="UTF-8",濡傚浘
閲嶅惎tomcat
以上是关于Linux涓嬪畨瑁匱omcat的主要内容,如果未能解决你的问题,请参考以下文章