广告

本站里的文章大部分经过自行整理与测试

2017年1月22日星期日

Linux - Tomcat

$ su

Ubuntu

$ apt install tomcat8 tomcat8-admin tomcat8-examples tomcat8-user

$ cd /var/lib/tomcat8/webapps/ROOT

$ systemctl start tomcat8

CentOS

$ yum install tomcat tomcat-admin-webapps tomcat-webapps

Fedora

$ dnf install tomcat tomcat-admin-webapps tomcat-webapps

$ cd /var/lib/tomcat/webapps/ROOT

$ systemctl start tomcat

OpenSUSE

$ zypper install tomcat tomcat-admin-webapps tomcat-webapps

$ cd /usr/share/tomcat/webapps/ROOT

$ systemctl start tomcat

--------------------------------------------------------------------
Ubuntu
$ gedit /etc/tomcat8/tomcat-users.xml
CentOS / Fedora / OpenSUSE
$ gedit /etc/tomcat/tomcat-users.xml

<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="admin-gui,manager-gui"/>

有关 HTTPS 的设置
http://jasonmun.blogspot.my/2017/01/lets-encrypt-tomcat-https.html

没有评论:

发表评论