Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MyCat startup error: java.net.UnknownHost

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Environment: Mycat-server-1.6.6.1-release

Linux environment, linux hostname myvmhost

1. MyCat startup error message is as follows (log file logs/wrapper.log):

Launching a JVM...JVM exited while loading the application.Error: Exception thrown by the agent: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: myvmhost: myvmhost

According to the error message, the hostname myvmhost should not be bound

Modify the hosts file to bind the hostname

# vim / etc/hosts# is modified as follows (maybe there are multiple hostnames, just add a new hostname myvmhost) 127.0.0.1 localhost myvmhost

Restart the mycat service

#. / mycat start

Check the log again and find that the startup is normal.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report