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.
全站熱搜