linux服务器初建之tomcat安装

install tomcat on linux

安装tomcat

安装tomcat

1
sudo yum install tomcat

安装管理包

1
sudo yum install tomcat-webapps tomcat-admin-webapps

安装在线文档

1
sudo yum install tomcat-docs-webapp tomcat-javadoc

配置tomcat管理页面

1
sudo vi /usr/share/tomcat/conf/tomcat-users.xml
1
2
3
<tomcat-users>
    <user username="admin" password="admin" roles="manager-gui,admin-gui"/>
</tomcat-users>

重启

1
sudo service tomcat restart

访问试试

1
2
http://yourIP:8080
http://yourIP:8080/manager/html
Licensed under CC BY-NC-SA 4.0
Last updated on Aug 18, 2023 13:13 UTC