tomcat5
默认用户名-密码:tomcat-tomcat、both-tomcat、role1-tomcat
tomcat6-8
windows下网站目录结构:
bin
conf
lib
logs
temp
webapps
work
conf下有一些配置文件:
- context.xml http://blog.csdn.net/aesop_wubo/article/details/7682711 这个配置文件里一般有数据源,可以翻一下看能不能找到数据库的连接方式
- server.xml(域名绑定目录、端口)
- tomcat-users.xml(登录账号和密码)
- web.xml
tomcat6不存在默认的账号和密码
后台地址:hostaddress/manager/html
在后台可以用war file to deploy上传一个war包
war包制作方法
- Myeclipse
- 新建一个web project
- 在webroot目录下部署jsp文件
- 导出war包
2.利用jar部署
jar -cvf xxx.war 目录名