在openSUSE Tumbleweed上安装tomcat后无法打开http://localhost:8080
我使用 server:http 安装的tomcat
另外配置一个java门户网站后,也无法打开,但能用curl读取网页
server.xml 中修改的配置如下,其它部位没有变化
<Context path="" docBase="" allowLinking="true" />
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="publiccms_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
我已经在hosts中增加了127.0.0.2 www.javapms.cc
防火墙我已经全部关闭了
这个是tomcat服务状态
sudo systemctl status tomcat.service
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2017-11-18 10:20:02 CST; 37min ago
Process: 4050 ExecStop=/usr/lib/tomcat/server stop (code=exited, status=0/SUCCESS)
Main PID: 4089 (java)
Tasks: 51 (limit: 4915)
CGroup: /system.slice/tomcat.service
└─4089 /usr/java/default//bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.coyote.http11.InternalNioOutputBuffer.recycle(InternalNioOutputBuffer.java:92)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.coyote.http11.AbstractHttp11Processor.recycle(AbstractHttp11Processor.java:1874)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:220)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:820)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
11月 18 10:20:27 linux-e5dt.suse server[4089]: at java.lang.Thread.run(Unknown Source)
请问有什么办法解决嘛?