Web server failed to start. Port 8080 was already in use. mac
时间: 2023-09-24 22:04:56 浏览: 158
运维系列(亲测有效):Ubuntu-server 22.04.1配置java环境(包含jdk和tomcat)以及解决出现问题
回答: 在Mac操作系统上,如果遇到"Web server failed to start. Port 8080 was already in use."的报错,表示8080端口已被占用。你可以通过以下步骤解决这个问题。首先,打开终端应用程序。然后,输入以下命令以查找占用8080端口的进程:
lsof -i :8080
该命令将显示占用8080端口的进程的信息,包括进程ID。记下占用8080端口的进程ID(PID)。接下来,输入以下命令以停止该进程:
kill PID
将PID替换为占用8080端口的进程的实际ID。此命令将终止该进程,释放8080端口。最后,重新启动你的Spring Boot项目,应该能够成功启动。如果问题仍然存在,请确保没有其他应用程序或服务正在使用8080端口,或者可以尝试将应用程序配置为使用其他可用端口。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Idea解决Web server failed to start. Port 8080 was already in use.端口被占用](https://blog.csdn.net/qq_52423918/article/details/119893263)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [遇到Web server failed to start. Port 8080 was already in use.该如何解决?](https://blog.csdn.net/aaa_12as/article/details/129292034)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文