我已经在VPS服务器Centos 7上安装了Tomcat8。并且它正在运行。
无法访问此网站216.10.245.185需要很长时间才能响应。 在Google中搜索2162451858080
如果这是某些防火墙问题或其他问题,请提供帮助。 我是Linux的新手,所以了解的不多。请帮忙。
我尝试使用“ systemctl status命令和wget”,并且两者都可以工作。 但是通过浏览器tomcat,主页未显示。
1)。 [root @ 216-10-245-185〜]#sudo systemctl状态为Tomcat
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-06-27 02:21:16 EDT; 20min ago
Process: 10305 ExecStop=/bin/kill -15 $MAINPID (code=exited, status=0/SUCCESS)
Process: 10316 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=0/SUCCESS)
Main PID: 10326 (java)
CGroup: /system.slice/tomcat.service
└─10326 /usr/lib/jvm/jre/bin/java -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Djava.util.logging.m...
Jun 27 02:21:16 216-10-245-185.webhostbox.net systemd[1]: Starting Apache Tomcat Web Application Container...
Jun 27 02:21:16 216-10-245-185.webhostbox.net startup.sh[10316]: Existing PID file found during start.
Jun 27 02:21:16 216-10-245-185.webhostbox.net startup.sh[10316]: Removing/clearing stale PID file.
Jun 27 02:21:16 216-10-245-185.webhostbox.net systemd[1]: Started Apache Tomcat Web Application Container.
[root@216-10-245-185 ~]#
2)。 wget也在工作。
[root@216-10-245-185 ~]# wget http://216.10.245.185:8080
--2019-06-27 02:46:33-- http://216.10.245.185:8080/
Connecting to 216.10.245.185:8080... connected.
HTTP request sent, awaiting response... 200
Length: unspecified [text/html]
Saving to: ‘index.html’
[ <=> ] 11,184 --.-K/s in 0s
2019-06-27 02:46:33 (170 MB/s) - ‘index.html’ saved [11184]
[root@216-10-245-185 ~]#