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

What if the Activemq service starts up with an error message?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What if an error is reported when the Activemq service starts? I believe that many inexperienced people are at a loss about this. This article summarizes the solutions to the failure to start Activemq services. Through this article, I hope you can solve this problem.

Environment description:

System version: centos7.3

Activemq version: apache-activemq-5.14.5

1. The host hostname has illegal characters

When modifying the host hostname, an illegal character was accidentally written, such as an underscore "_", which caused the service to fail to start.

Error content:

2019-09-29 12 localhost 44displacement 42057 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:193_168_0_24-43901-1569732279834-0:1], java.net.URISyntaxException: Illegal character in hostname at index 8: ws://193_168_0_24:58083?maximumConnections=1000&wireFormat.maxFrameSize=104857600) | org.apache.activemq.broker.BrokerService | main

Resolve:

Just modify the hostname.

How to modify hostname:

1. Method 1. The hostnamectl command is modified to take effect without restarting a new window.

Syntax: hostnamectl set-hostname new hostname

2. Method 2: modify configuration file / etc/hostname save and exit

Restart is required to take effect after the modification is completed.

Method 3: temporarily modify the host name

New hostname for hostname

For more information on hostname naming rules, please see:

Https://en.wikipedia.org/wiki/Hostname

2. The configuration file IP is not configured correctly

The configuration file conf/activemq.xml file IP is not configured correctly and activemq startup failed.

Error report:

2019-09-29 13 localhost 24Switzerland 27798 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:193-168,0-24-37400-1569734665712-0:1], java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: nio://193.169.0.24:50002?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Cannot assign requested address) | org.apache.activemq.broker.BrokerService | main

Resolve:

It would be nice if the IP was modified correctly.

However, online posts also mention other reasons and solutions for "Cannot assign requested address" reporting errors:

1. / etc/hosts parsing exception. Native IP cannot be parsed. You need to add 127.0.0.1 localhost manually.

2. / etc/hosts file permission exception, modified to 644

After reading this article, can you solve the problem that the Activemq service cannot be started on your own? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report