Tomcat 8.5以port:9090开始,
dev_hng@hng-instance-2:~$ $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-8-oracle
Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Tomcat started.
网络状态,
dev_hng@hng-instance-2:~$ netstat -a | grep 9090
tcp 3 0 0.0.0.0:9090 0.0.0.0:* LISTEN
tcp 1 0 hng-instance-2:9090 101.60.2.250:6788 CLOSE_WAIT
禁用防火墙。 也无法在内部访问,也没有出错。
dev_hng@hng-instance-2:/opt/tomcat/bin$ sudo wget http://localhost:9090
--2017-04-03 18:17:14-- http://localhost:9090/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:9090... connected.
HTTP request sent, awaiting response...
答案 0 :(得分:1)
我必须在"-Djava.security.egd=file:/dev/./urandom"
中添加setenv.sh
它现在正常工作。
答案 1 :(得分:0)
检查tomcat是否在$CATALINA_HOME/logs/localhost.<today's date>.log
如果您在$CATALINA_HOME/logs/catalina.out