当前位置:网站首页>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
/
边栏推荐
- DevOps在物联网解决方案中的应用
- ZABBIX 5.0 uses its own redis template for monitoring
- 软件设计师的错题汇总
- Powercli batch add esxi to vCenter
- curl (7) Failed connect to localhost8080; Connection refused
- The failure rate is as high as 80%. How to correctly complete the strategic planning of digital transformation?
- Worthington - chemical properties and related studies of Worthington trypsin
- Where is the DP interface of desktop computer (what if the host has no DP interface)
- What is a driver signature and how does the driver get a digital signature?
- 双重for循环优化
猜你喜欢

VMware VCSA 7.0 Install

EN 1873屋面用装配附件.塑料单个屋面灯—CE认证

VMware VCSA 7.0 Install

EN 1935建筑五金.单轴铰链—CE认证

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

Doip test development practice

VirtualLab基础实验教程-8.傅里叶变换(1)

Pycharm new project

DevOps在物联网解决方案中的应用

Classification and determination method of Worthington stemxyme
随机推荐
EN 12101-8:2011烟雾和热量控制系统防烟挡板—CE认证
GhostNets on Heterogeneous Devices via Cheap Operations
Review of categories 1-4
The failure rate is as high as 80%. How to correctly complete the strategic planning of digital transformation?
以JSP为视图解析器搭建SSM项目
Interpretation of ISO 13400 (doip) standard
Leetcode59. 螺旋矩阵 II
Pycharm new project
1-7 解决类中方法的this指向问题
Wildcard ssl/tls certificate
多传感器融合定位(三)——惯性技术
What is in word?:^ p
Where is the DP interface of desktop computer (what if the host has no DP interface)
Tyrosine decarboxylase -- characteristics of tyrosine decarboxylase of Streptococcus faecalis in Worthington
Word中的\n是什么?:^p
Those "experiences and traps" in the data center
Leetcode64. Minimum path sum
JS高级 之 ES6~ES13 新特性
EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification
centos7安装mysql8