CentOS7 使用yum安装tomcat
参考文章https://blog.csdn.net/github_38336924/article/details/82253553
- 查看tomcat信息,结果如下
yum info tomcat
2. 安装
yum -y install tomcat
查看版本,安装成功:
-
配置环境变量
(1)Tomcat默认yum安装路径/usr/share/tomcat/
(2)在etc/profile文件中最后加入环境变量
CATALINA_BASE=/usr/share/tomcat