当前位置:网站首页>curl (7) Failed connect to localhost8080; Connection refused
curl (7) Failed connect to localhost8080; Connection refused
2022-07-29 00:03:00 【m0_ sixty-seven million four hundred and three thousand and thi】
curl: (7) Failed connect to localhost:8080; Connection refused
If you are curl Baidu is normal ,curl ( own IP) normal , however One curl http://localhost:8080 Is to report you an error , Then you can try the following methods !
I have searched many methods before , say nignx The problem of , Or the port , I tried it for a long time, but it didn't work . Followed by a blogger who said he could check the log , I opened the log and read it , Really found problems 
stay tomcat There is a... In the folder logs file

Find the file name of the above figure , Then open with text editing
Tell me here , In fact, the installation is /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre/bin/java/bin/java, In fact, there is no such thing /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre/bin/java/bin/java Catalog , It is /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/
So let's check now jdk The path of

And then use vi /etc/profile To modify jdk Path configuration
Put the previous JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre/bin/java/bin/java
Change to the present JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre

Update the file again
source /etc/profile
restart tomcat Of , Again curl The visit will be successful
/
边栏推荐
- 实时数仓:滴滴的实时数仓落地实践
- VS2005透过SourceOffSite访问VSS2005的设置方法「建议收藏」
- Review of categories 1-4
- Worthington RNA determination detailed introduction
- 多传感器融合定位(三)——惯性技术
- VMware VCSA 7.0 Install
- EN 1935 building hardware. Single axis hinge - CE certification
- Jincang database kingbasees client programming interface guide ODBC (2. Overview)
- With the help of rpa+lcap, the enterprise treasurer management can be upgraded digitally
- Leetcode61. 旋转链表
猜你喜欢

Tyrosine decarboxylase -- characteristics of tyrosine decarboxylase of Streptococcus faecalis in Worthington

RHCE the next day

ISO 13400(DoIP)标准解读

Pycharm configuring the running environment

失败率高达80%,数字化转型如何正确完成战略规划?

Powercl batch creates and manages virtual switches

Leetcode60. 排列序列

Connection pool - return connection details (Part 2)

Have passed hcip and joined the company of your choice, and share the learning experience and experience of Huawei certification

Classification and determination method of Worthington stemxyme
随机推荐
1-6 state与绑定事件
mysql索引失效的常见9种原因详解
Powercli VMware vCenter deploys conventional new VMS in batch through self built PXE server with one click
Doip test development practice
YOLOV5学习笔记(一)——原理概述
Worthington - chemical properties and related studies of Worthington trypsin
Multisensor fusion positioning (III) -- inertial technology
Tyrosine decarboxylase -- characteristics of tyrosine decarboxylase of Streptococcus faecalis in Worthington
ISO 13400(DoIP)标准解读
Js判断数据类型的4种⽅式
EN 1935 building hardware. Single axis hinge - CE certification
什么是驱动程序签名,驱动程序如何获取数字签名?
Those "experiences and traps" in the data center
RHCE the next day
Where is the DP interface of desktop computer (what if the host has no DP interface)
[TA frost wolf \u may - "hundred people plan"] Figure 3.6 texture compression - inclusion slimming
Powercli batch add esxi to vCenter
Pycharm new project
Arm-A53资料「建议收藏」
软件设计师的错题汇总