(1) 在tomcat的config文件夹下修改server.xml,在里面的<host ...>....</host>元素中添加 如下:
<Context path="" debug="0" docBase="manager" reloadable="true"/> 其中 manager 改为项目名称
(2)在不输入端口的情况下,浏览器默认指向80端口,所以在server.xml中把http协议的端口设为80
就这样,在浏览器地址栏直接输入IP就打开你的项目首页了
![大笑](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)