Tuesday, November 24, 2015

Fedora - Tomcat server


 $ sudo dnf install tomcat tomcat-webapps tomcat-admin-webapps tomcat-docs-webapp tomcat-javadoc
 $ sudo systemctl start tomcat.service
 $ sudo lsof -i :8080  
 COMMAND PID  USER  FD  TYPE DEVICE SIZE/OFF NODE NAME  
 java  9006 tomcat  49u IPv6 81129   0t0 TCP *:webcache (LISTEN)  
$ sudo gedit /etc/tomcat/tomcat-users.xml 
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
 <role rolename="manager-gui"/>
 <user username="tomcat" password="tomcat" roles="tomcat, manager-gui"/>
 <role rolename="admin"/> 
 <user username="admin" password="admin" roles="admin,manager,manager-gui"/>
</tomcat-users>

No comments:

Post a Comment