遇到Web server failed to start. Port 8080 was already in use.该如何解决?

这篇具有很好参考价值的文章主要介绍了遇到Web server failed to start. Port 8080 was already in use.该如何解决?。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1.今天晚上做了一个springboot的小案例,运行springboot案例时,发现项目没有启动成功:

遇到Web server failed to start. Port 8080 was already in use.该如何解决?,java,Powered by 金山文档

2.错误描述为:Web server failed to start. Port 8080 was already in use.

这句错误描述意思是当前程序的端口号8080被占用了,需要将占用该端口的程序停止掉才行。文章来源地址https://www.toymoban.com/news/detail-541858.html

3.我们按住win+R键调出运行窗口,输入cmd进入命令行:

遇到Web server failed to start. Port 8080 was already in use.该如何解决?,java,Powered by 金山文档

4.进入命令行后,输入如下命令查看“8080”对应端口的程序占用情况:

遇到Web server failed to start. Port 8080 was already in use.该如何解决?,java,Powered by 金山文档

5.我们通过查询发现id为“14268”的进程占用了8080端口,直接将它关闭掉:

遇到Web server failed to start. Port 8080 was already in use.该如何解决?,java,Powered by 金山文档

6.如上图,进程关闭成功后,我们打开idea,重新启动springboot项目,发现项目启动成功:

遇到Web server failed to start. Port 8080 was already in use.该如何解决?,java,Powered by 金山文档

7.大功告成了!

到了这里,关于遇到Web server failed to start. Port 8080 was already in use.该如何解决?的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • The connection to the server localhost:8080 was refused - did you specify the right host or port?

    问题背景 使用 kubeadm 安装完成 kubetnetes 之后,将节点加入 master 之后,提示 The connection to the server localhost:8080 was refused - did you specify the right host or port? 问题解决 方法1 查看 /etc/kubernetes/ 目录下是否存在 kubelet.conf 或者 admin.conf (个人理解只是文件名称不同),然后将上述两个

    2024年02月11日
    浏览(43)
  • 已解决—The connection to the server localhost:8080 was refused - did you specify the right host or port

    运行 kubectl get namespace时报错: [root@ip-10-0-0-8 ~]# kubectl get namespace E0320 07:39:20.866425 32422 memcache.go:265] couldn\\\'t get current server API group list: Get \\\"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused .... The connection to the server localhost:8080 was refused - did you specify the righ

    2024年02月12日
    浏览(40)
  • 【Failed to start nginx - high performance web server.】

    启动nginx如果报这个错误,一般需要去nginx安装的日志目录查看错误日志文件error.log,我们就可以进一步排查出nginx出现的错误情况 发现报错: 1、找到占用该端口的进程 lsof -i:8000 2、使用kill命令干掉它这个进程 kill -9 pid 3、重启Nginx即可 systemctl restart nginx

    2024年02月11日
    浏览(37)
  • 解决使用git时遇到Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server

    先试试你能直接访问GitHub: Let’s build from here · GitHub吗? 你是直接就可以访问成功还是挂梯子之后访问成功的呢? fatal: unable to access \\\'https://github.com/xxx/******.git/\\\': Failed to connect to github.com port 443 after 21090 ms: Couldn\\\'t connect to server 一般出现这种问题都是开过VPN导致的本机系统端口

    2024年02月05日
    浏览(44)
  • abd设备连接问题* daemon not running. starting it now on port 5037 *ADB server didn‘t ACK* failed to star

    有时候,当我们执行 adb devices 或者 adb start-server 的时候,会出现下面的情况: * daemon not running. starting it now on port 5037 * ADB server didn\\\'t ACK * failed to start daemon *   查一下daemon是个什么东西,daemon字面意思就是守护进程。那么它为什么会有问题呢? 1、首先,先杀掉adb进程再重启试

    2024年02月05日
    浏览(41)
  • Failed to start connector [Connector[HTTP/1.1-8080]]

    1、解决Web server failed to start. Port 8080 was already in use 2、SpringBoot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.” 3、Failed to start end point associated with ProtocolHandler [http-nio-8080] 4、Failed to start connector [Connector[HTTP/1.1-8080]] 提示:

    2024年02月13日
    浏览(34)
  • nginx启动提示:nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)

    解决方法两种:          第一种:更换端口          第二种:杀死占用的端口 我们先来看第一种方法: 再来看第二种方法: 欢迎大家纠错讨论!!!

    2024年02月15日
    浏览(33)
  • K8s ❉ The connection to the server 报错localhost:8080 was refused

    现象描述 K8s集群初始化成功后,kubectl get nodes 查看节点信息时报错: 报错信息: 解决办法: 执行以下命令

    2024年02月11日
    浏览(117)
  • 解决Jetson: Failed to start nvpmode1 server. 和Failed to start load kernel modules

    在使用jetson开发板的时候不知道什么原因会报一些错,导致开机进不了图形化界面   也不知道是啥原因,新手对此还不是特别了解,网上好像也很少有相关的解决方案。 我分享一下我的解决方案: 重装桌面 首先既然开机进不了界面怎么输命令? 答:如果是停留在开机界面

    2023年04月14日
    浏览(43)
  • Failed to start MySQL Community Server in Ubuntu

    一、安装MySQL 本文是通过APT方式安装,安装的最新版本是5.7.21 (注意:通过APT方式安装的版本都是现在最新的版本,通过这种方式安装好之后开机自启动都已经配置好,和命令行上的环境变量,无需手动配置。) 如果提示依赖不足,运行下面命令解决依赖问题,如果没出现依

    2024年02月09日
    浏览(48)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包