close

1. check server.xml

2. Find the region of <Host> </Host>

3. Insert one line in between <HOST> such as

<Context path="" docBase="/home/ytl/ROOT" debug="0" reloadable="false" />

4. restart the tomcat7:

For example:

root@ytl:/home/ytl/ROOT# /etc/init.d/tomcat7 stop
[ ok ] Stopping tomcat7 (via systemctl): tomcat7.service.
root@ytl:/home/ytl/ROOT# /etc/init.d/tomcat7 start
[ ok ] Starting tomcat7 (via systemctl): tomcat7.service.

 

5. If you want to change port, please search port=8080 in server.xml file.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 ytl0821 的頭像
    ytl0821

    YT Lee's simple notes

    ytl0821 發表在 痞客邦 留言(0) 人氣()