Port 8083 was already in use。端口被占用解决办法

本文教你如何通过CMD命令行查询8083端口对应进程,然后使用taskkill强制结束6312号进程,适合解决Windows系统中网络问题的排查。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.win+R 进入cmd
2.输入

netstat -ano | findstr 8083

3.查看对应的进程是什么
在这里插入图片描述
4.杀掉6312的进程

taskkill /pid 6312 -t -f

在这里插入图片描述
搞定。

### Linux Web Server Port Already In Use and Kill Command Not Working When encountering a situation where the web server cannot start because port 10023 is occupied by another process, and using `kill -9` does not terminate this process effectively, several strategies can help resolve the issue. A common misconception might lead one to believe that simply killing the offending process would free up the port immediately; however, sometimes processes do not respond as expected or may restart automatically depending on how they are managed within the system. Instead of relying solely on forceful termination methods like `kill -9`, consider these alternatives: #### Verify Process Ownership Firstly, identify which application owns the problematic port with greater precision than just finding its PID (Process ID). This approach ensures no critical services are inadvertently disrupted when attempting resolution actions. ```bash sudo lsof -i :10023 ``` This command lists all connections associated with port 10023 along with detailed information about each connection including owner details[^1]. #### Adjust Kernel Parameters Temporarily If binding issues arise due to kernel restrictions such as those mentioned regarding non-local IP bindings, adjusting relevant parameters temporarily could provide relief without modifying core configurations permanently: ```bash echo "1" | sudo tee /proc/sys/net/ipv4/ip_nonlocal_bind ``` Note that changing certain settings requires administrative privileges and should only occur after careful consideration since it affects network behavior globally across the entire machine. #### Restart Network Services Gracefully Instead of forcefully terminating specific PIDs via `kill -9`, restarting networking components gracefully often resolves lingering socket states more reliably while minimizing potential side effects: ```bash sudo systemctl restart network-manager.service # Or for older systems using init.d scripts instead of systemd units sudo service network-manager restart ``` For cases involving database listeners specifically bound to particular ports similar to what was described concerning Oracle instances listening on custom ports outside default ranges[^2]: - Ensure proper configuration files reflect intended operational modes post-restart. - Validate firewall rules permit necessary traffic patterns through specified endpoints before assuming connectivity problems stem from local resource conflicts alone. By following above suggestions rather than exclusively focusing on brute-force approaches towards managing stuck resources, smoother resolutions become attainable even under challenging circumstances encountered during troubleshooting sessions related to web servers operating inside Linux environments.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一粒程序米

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值