温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

28. Tomcat9源代码下载和编译

发布时间:2020-07-23 16:30:23 来源:网络 阅读:611 作者:rongwei84n 栏目:开发技术

一. 下载地址

http://tomcat.apache.org/download-90.cgi

找到最下面source code下载->解压


二. 编译

  1. 安装ant->把ant bin目录配置到环境变量里面

  2. 在tomcat源代码根目录执行 ant命令



三. 运行

  1. cd到tomcat源代码目录->output->build->bin目录

  2. 执行 ./startup.sh

  3. 关闭tomcat ./shutdown.sh


四. 添加tomcat管理员

  1. 打开tomcat源代码/conf/tomcat-users.xml

  2. 添加一行,如下:

<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">
  <user username="admin" password="123" roles="manager-gui"/>
</tomcat-users>


五. 访问tomcat

  1. 打开浏览器->localhost:8080

  2. 点击manager app

  3. 输入用户名和密码 admin/123


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI