linux tomcat¶Ë¿ÚÔõôÉèÖÃ
ÒªÔÚ linux Öиü¸Ä tomcat µÄ¶Ë¿Ú£¬ÇëÐÞ¸ÄÉèÖÃÎļþ server.xml ÖÐµÄ port ÊôÐÔ£¬ÀýÈ罫 8080 ¸ü¸ÄΪ 8090¡£ÉúÑĸü¸Ä£¬È»ºóʹÓà sudo systemctl restart tomcat ÏÂÁîÖØÆô tomcat¡£
ÔõÑùÉèÖà Linux ÖÐ Tomcat ¶Ë¿Ú
Òª¸ü¸Ä Linux ÖÐ Tomcat µÄ¶Ë¿Ú£¬ÐèÒªÐÞ¸Ä Tomcat µÄÉèÖÃÎļþ¡£Ïêϸ°ì·¨ÈçÏ£º
1. ÕÒµ½ÉèÖÃÎļþ
Tomcat ÉèÖÃÎļþͨ³£Î»ÓÚ /usr/local/tomcat/conf Ŀ¼Ï£¬ÃûΪ server.xml¡£
2. ¸ü¸Ä¶Ë¿ÚºÅ
ÔÚ server.xml ÎļþÖУ¬ÕÒµ½ÒÔÏ´úÂë¿é£º
<connector port="8080" protocol="HTTP/1.1" connectiontimeout="20000" redirectport="8443"></connector>
µÇ¼ºó¸´ÖÆ
½« port=”8080″ ÖеĶ˿ںŸü¸ÄΪÄúËùÐèµÄ¶Ë¿ÚºÅ¡£ÀýÈ磬Ҫ½«Æä¸ü¸ÄΪ 8090£¬Ç뽫ÆäÌ滻Ϊ£º
<connector port="8090" protocol="HTTP/1.1" connectiontimeout="20000" redirectport="8443"></connector>
µÇ¼ºó¸´ÖÆ
3. ÉúÑĸü¸Ä
ÉúÑÄ server.xml Îļþ¡£
4. ÖØÆô Tomcat
¸ü¸ÄÍê³Éºó£¬ÐèÒªÖØÆô Tomcat ÒÔʹÐÂÉèÖÃÉúЧ¡£Ê¹ÓÃÒÔÏÂÏÂÁîÖØÆô£º
sudo systemctl restart tomcat
µÇ¼ºó¸´ÖÆ
ÌáÐÑ£º
ʹÓà sudo ÏÂÁîÐèÒªÖÎÀíԱȨÏÞ¡£
ĬÈÏÇéÐÎÏ£¬Tomcat ¼àÌý¶Ë¿Ú 8080¡£
¿ÉÒÔͬʱָ¶¨ HTTP ºÍ HTTPS ¶Ë¿Ú¡£
ÈôÊÇÄúÔÚ·À»ðǽÖÐÆôÓÃÁ˶˿ڣ¬ÔòÐèÒªÔÊÐíж˿ںš£
ÒÔÉϾÍÊÇlinux tomcat¶Ë¿ÚÔõôÉèÖõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡