通过 java.net.BindException 运行 mvnw 失败:无法分配请求的地址

时间:2021-05-27 04:03:27

标签: java maven jhipster bind

安装 jhipster 并使用 blog 创建示例 jhipster

cat /etc/hosts

127.0.0.1       localhost
#192.168.1.9    localhost

检查 pom.xml 并定义使用的端口是 8090 enter image description here

检查运行端口: enter image description here 上面显示未使用端口 8090./mvnw 应该能够在给定端口中运行

运行 ./mvnw 后,它一直说 java.net.BindException: Cannot assign requested address

我使用 ubuntu 18.04 从 digital ocean 安装 java 8 和 11 并在两者中运行 maven

nb:已经应用了类似问题的解决方案,例如 herethere,有些人指出 /etc/hosts 有错误。像上面一样更改我的 /etc/hosts 后,它仍然给我留下同样的错误

有什么帮助吗?谢谢

0 个答案:

没有答案