JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Exception in thread "main" java.net.BindException: Cannot assign requested address

发布时间 2023-11-01 14:28:58作者: 槑孒

两种情况

1.端口号被占用,导致地址无法绑定

# windows查看端口pid
netstat -aon|findstr 8080(端口号)

# linux查看端口占用
netstat -anp|grep 8080

2.ip地址与本机地址不匹配,导致地址无法绑定

# windows查看ip
ipconfig

# linux查看ip
ifconfig
    本栏目推荐文章
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
  • Python中出现"No module named 'requests'"的图文解决办法
  • 在Windows上出现"localhost拒绝连接”的问题
  • "nginx.conf" E514 : write error (file system full?)
  • 加了@SessionAttributes("uid")退出登陆后如何清除session
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • pytest 内置fixture-request
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们