3.3Tomcat安装与配置
1、安装
将apache-tomcat-7.0.5.zip解压到D:\Program Files\Tomcat目录下即可。
2、配置admin、manager用户名与密码
打开如下文件,并新增蓝色部分的配置,示例中passward设置为空:
D:\Program Files\Tomcat\apache-tomcat-7.0.5\conf\ tomcat-users.xml
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager" role required
to operate the "/manager" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
。。。。。。。。。。。。。。
<user name="admin" password="" roles="admin-gui,manager-gui" />
</tomcat-users>
3、设置环境变量
在桌面上右键点击“我的电脑”,选择属性打开“系统属性”对话框,选择“高级”-“环境变量”,在“系统变量”里新建如下环境变量:
TOMCAT_HOME: D:\Program Files\Tomcat\apache-tomcat-7.0.5