# Issue
# 问题
# java打包的jar包都要小写,不要大写
# docker镜像名称都要小写不要大写
# 项目中所有的配置文件都集中在一个yml中
# 启动报错
2024-11-13T08:51:08.560057361Z Caused by: java.net.UnknownHostException: 10-41-7-24: Name or service not known 2024-11-13T08:51:08.560059850Z at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) 2024-11-13T08:51:08.560062390Z at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) 2024-11-13T08:51:08.560064881Z at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1330) 2024-11-13T08:51:08.560067390Z at java.net.InetAddress.getLocalHost(InetAddress.java:1507) 2024-11-13T08:51:08.560069850Z ... 86 common frames omitted
修改主机名,改成/etc/hosts 里边的 hostnamectl set-hostname new_hostname hostnamectl