美文网首页
Mac安装Tomcat

Mac安装Tomcat

作者: 翱翔的土豆 | 来源:发表于2018-03-29 20:25 被阅读0次

Mac使用homebrew 安装tomcat

先安装homebrew https://brew.sh

1.terminal 

brew search tomcat

2.brew install tomcat

等到安装完成

3.catalina run

4. 浏览器打开localhost:8080

5.配置tomcat的管理信息 

brew info tomcat 查找位置信息

/usr/local/Cellar/tomcat/9.0.6 (9.0.6为当前的版本)

/usr/local/Cellar/tomcat/9.0.6/libexec/conf/tomcat-users.xml

添加

<role rolename="manager-gui" />

<role rolename="manager-script />

<user username=''tomcat" password="123456" roles="manager-gui, manager-script" />

相关文章

网友评论

      本文标题:Mac安装Tomcat

      本文链接:https://www.haomeiwen.com/subject/rijvcftx.html