一、Tomcat安装
1.将tomcat安装包apache-tomcat-7.0.57-windows-x64.zip在本地解压后放到/usr/local目录
2.修改解压后的目录的权限
[root@localhost local]# chmod -cfvR 777 apache-tomcat-7.0.57/
3.修改环境变量:
[root@localhost java]# vi ~/.bashrc
export CATALINA_HOME=/usr/local/apache-tomcat-7.0.57使配置的环境变量生效
[root@localhost java]# source~/.bashrc
如图:
4.启动tomcat命令:
[root@localhost local]# /usr/local/apache-tomcat-7.0.57/bin/startup.sh
显示下面信息表明启动成功:
5. 关闭命令:
[root@localhost local]# /usr/local/apache-tomcat-7.0.57/bin