简体   繁体   English

Tomcat启动,但输入以下内容时未显示在浏览器中:localhost:8080或ip:8080 Centos7 vm

[英]tomcat starts but doesnt show up in browser when entering: localhost:8080 or ip:8080 Centos7 vm

so I've manually installed tomcat version 9.0.10 and the newest java JDK. 因此,我已经手动安装了Tomcat版本9.0.10和最新的Java JDK。 I've correctly added the manager-gui and admin-gui users. 我已经正确添加了manager-gui和admin-gui用户。 i have went into the server.xml files and found that all the ports were correct.. (connecting to default port 8080) I had to do []# unset CATALINA_HOME or else it wouldn't let me start tomcat so I did and it started but when I went to the browser and typed in the localhost:8080 it didn't show, it only says firefox could not establish connection with server localhost:8080 so I went into logs to see if there were any errors and sure enough there was an error like so: /usr/local/tomcat/apache-tomcat-9.0.10/bin/catalina.sh: line 464: /usr/bin/Java/jdk-10.0.2/bin/bin/java does not exist.. and its probably right why would there be /bin/bin/ like that in a directory.. so i went into the catalina.sh file copied what it had inside into a blank file in documents and went to line 464 (txt editor numbered the lines for me) and what i found was this line at 464: eval $_NOHUP "\\"$_RUNJAVA" "\\"$LOGGING_CONFIG\\"" $LOGGING_MANAGER $JAVA_OPTS %CATALINA_OPTS\\ 我进入了server.xml文件,发现所有端口都是正确的..(连接到默认端口8080)我不得不做[]#取消设置CATALINA_HOME,否则它不会让我启动tomcat,所以我做到了启动,但是当我进入浏览器并输入localhost:8080时,它没有显示,它只是说firefox无法与服务器localhost:8080建立连接,所以我进入日志以查看是否有任何错误并且确定在那里是这样的错误:/usr/local/tomcat/apache-tomcat-9.0.10/bin/catalina.sh:第464行:/usr/bin/Java/jdk-10.0.2/bin/bin/java不存在存在..它大概是正确的,为什么在目录中会有/ bin / bin /之类的..所以我进入catalina.sh文件,将其内部内容复制到文档中的空白文件中,并转到第464行(txt编辑器为我编号了行),我发现这行是464:eval $ _NOHUP“ \\” $ _ RUNJAVA“” \\“ $ LOGGING_CONFIG \\”“ $ LOGGING_MANAGER $ JAVA_OPTS%CATALINA_OPTS \\

but I have no idea what to do about it.. i think i might have a path problem or could be a port problem but I don't think so... I've installed apache and it works great in the browser with localhost.. could that affect the tomcat access maybe? 但我不知道该怎么办..我想我可能遇到路径问题或可能是端口问题,但我不这么认为...我已经安装了apache,并且在本地主机的浏览器中效果很好..可能会影响tomcat的访问权限吗?

anyway, id really appreciate any help I can get.. I'm very new to this by the way. 无论如何,id非常感谢我能获得的任何帮助。顺便说一下,我对此很陌生。 I'm sorry, I couldn't copy and paste from my virtual machine so I had to type it. 抱歉,我无法从虚拟机复制和粘贴,因此必须输入它。 im on centos 7. 我在centos上7。

I think you are looking for tomcat deployment page where you can manage your artifact. 我认为您正在寻找可以管理工件的tomcat部署页面。 If that is correct First thing you need to check is that whether your installation contains tomcat manager application. 如果正确,那么您需要检查的第一件事是您的安装是否包含tomcat管理器应用程序。 You can verify this by looking in to this path ("apache-tomcat-9.0.10\\webapps\\manager") If this path is absent you may have to reinstall your tomcat. 您可以通过查看此路径(“ apache-tomcat-9.0.10 \\ webapps \\ manager”)进行验证。如果不存在此路径,则可能必须重新安装tomcat。

Try downloading the zip from the below path and start the server. 尝试从以下路径下载zip并启动服务器。

If you are trying to deploy your custom application you may have to provide the context path for accessing you application. 如果您尝试部署自定义应用程序,则可能必须提供访问应用程序的上下文路径。 Also you can verify the deployment by looking in to the above path. 您也可以通过查看以上路径来验证部署。 For eg: if you are trying to deploy test.war then a folder named test will appear in the webapp folder. 例如:如果您尝试部署test.war,则一个名为test的文件夹将出现在webapp文件夹中。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tomcat 7 未在浏览器上运行 (http://localhost:8080/) - Tomcat 7 is not running on browser(http://localhost:8080/ ) Tomcat 启动但主页无法打开,网址为 http://localhost:8080 - Tomcat starts but home page cannot open with url http://localhost:8080 Tomcat 6在Eclipse中运行,但是localhost:8080在浏览器中从未响应 - Tomcat 6 is running in Eclipse but localhost:8080 never responds in browser Tomcat已启动,但本地主机8080不可用 - Tomcat started but localhost 8080 is not availble Openshift-在浏览器上使用端口8080访问tomcat IP地址 - Openshift - Access tomcat IP address with port 8080 on browser Tomcat在Eclipse运行时打不开http://localhost:8080/ - Cannot open http://localhost:8080/ when Tomcat is running in Eclipse 我已经安装了Apache Tomcat 7,并且在浏览器中转到http:// localhost:8080时,看到以下错误:HTTP状态500 - I have installed Apache Tomcat 7 and when I goto http://localhost:8080 in my browser, I see the following error : HTTP Status 500 Tomcat7(localhost:8080):404错误 - Tomcat7 (localhost:8080): 404 error Tomcat 登陆页面不在 localhost:8080 上 - Tomcat Landing Page not comming on localhost:8080 localhost:8080 / lio /在我的apachtomcat中效果很好。 但是当我放 <my ip> :8080 / lio /我收到错误 - localhost:8080/lio/ works great in my apachtomcat. but when i put <my ip>:8080/lio/ i get error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM