このコンテンツは選択した言語では利用できません。

7.6.3. Verifying the ActiveMQ Configuration


MCollective can act in one of two ways: it can transport host-to-host messages, or it can broadcast messages with the appropriate hosts responding to the broadcasting host. In the latter case, a message that is broadcast has a "topic" that is used to indicate which hosts should respond.
After ActiveMQ has started, verify that it is listening for messages for the OpenShift Enterprise topics. It can take 60 seconds or longer for the activemq daemon to finish initializing and start answering queries.
Verify that authentication is working, replacing password with your password:
# curl --head --user admin:password http://localhost:8161/admin/xml/topics.jspcurl --head --user admin:password http://localhost:8161/admin/xml/topics.jspcurl --head --user admin:password http://localhost:8161/admin/xml/topics.jsp
Copy to Clipboard Toggle word wrap
A 200 OK message should be displayed, followed by the remaining header lines. If you see a 401 Unauthorized message, it means your user name or password is incorrect.
Verify that the service returns a topic list, replacing password with your password:
# curl --user admin:password --silent http://localhost:8161/admin/xml/topics.jsp | grep -A 4 topic# curl --user admin:password --silent http://localhost:8161/admin/xml/topics.jsp | grep -A 4 topic# curl --user admin:password --silent http://localhost:8161/admin/xml/topics.jsp | grep -A 4 topic
Copy to Clipboard Toggle word wrap
If no results are returned, run it again without the --silent argument, and without using grep to filter messages:
# curl http://localhost:8161/admin/xml/topics.jsp
Copy to Clipboard Toggle word wrap
If the following message is returned, it means that either the ActiveMQ service is not running, or it has not finished initializing.
curl: (7) couldn't connect to host
Copy to Clipboard Toggle word wrap
If this persists for more than 60 seconds, and the activemq daemon is running, look in the ActiveMQ log file:
# more /var/log/activemq/activemq.log
Copy to Clipboard Toggle word wrap
After you have verified the ActiveMQ configuration, disable the unused Jetty by commenting out the line that loads jetty.xml. This can be done by editing activemq.xml manually or by running the following command:
# sed -ie "s/\(.*import resource.*jetty.xml.*\)/<\!-- \1 -->/" /etc/activemq/activemq.xml
Copy to Clipboard Toggle word wrap
Restart the activemq service for the changes to take effect:
# service activemq restart
Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat