tomcat6

xiaoxiao2021-03-01  12

sudo tar zxvf apache-tomcat-6.0.18.tar.gz -C /opt sudo mv /opt/apache-tomcat-6.0.18 /opt/tomcat sudo /opt/tomcat/bin/startup.sh sudo /opt/tomcat/bin/shutdown.sh han@han-laptop:/opt/tomcat/bin$ sudo netstat -lpn|grep 8080 tcp6       0      0 :::8080                 :::*                    LISTEN      16412/java   han@han-laptop:/opt/tomcat/bin$ sudo ps -ef|grep 16412 root     16412     1  5 00:43 pts/0    00:00:03 /usr/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/tomcat/endorsed -classpath :/opt/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start han      16470 15544  0 00:44 pts/0    00:00:00 grep 16412http://localhost:8080/ 登录Tomcat Manager前配置用户: han@han-laptop:/opt/tomcat/conf$ sudo vim tomcat-users.xml <?xml version='1.0' encoding='utf-8'?> <tomcat-users>   <role rolename="manager"/>   <role rolename="tomcat"/>   <role rolename="admin"/>   <user username="han" password="han" roles="admin,manager"/>   <user username="tomcat" password="tomcat" roles="tomcat"/> </tomcat-users>

转载请注明原文地址: https://www.6miu.com/read-4050350.html

最新回复(0)