日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

activemq启动异常

發布時間:2025/3/19 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 activemq启动异常 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

activemq啟動異常

執行activemq啟動命令start,輸出正常提示信息,activemq.log日志也正常,但進程沒有起來,沒有其他任何異常信息:

[root@jms2 bin]# ./activemq start

INFO: Using default configuration

(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)


INFO: Invoke the following command to create a configuration file

./activemq setup [ /etc/default/activemq | /root/.activemqrc ]


INFO: Using java '/usr/bin/java'

INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details

INFO: pidfile created : '/usr/local/activemq-5.6.0-slave/data/activemq-jms2.pid' (pid '35301')



查詢到console啟動命令,啟動后發現有錯誤日志輸出:

[root@jms2 bin]# ./activemq console

INFO: Using default configuration

(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)


INFO: Invoke the following command to create a configuration file

./activemq setup [ /etc/default/activemq | /root/.activemqrc ]


INFO: Using java '/usr/bin/java'

INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)

錯誤: 必須限制口令文件讀取訪問權限: /usr/local/activemq-5.6.0-master/conf/jmx.password



修改jmx.password的權限:

-rwxrwxrwx. 1 hanxl games ? 968 8月 ?16 2013 jmx.password


chmod -R 600 jmx.password

-rw-------. 1 hanxl games ? 968 8月 ?16 2013 jmx.password



第二次報錯如下,必須使用console命令啟動才能看到錯誤:

錯誤: 代理拋出異常錯誤: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: jms2: jms2: 未知的名稱或服務



console啟動命令屬于非后臺運行,當關閉shell窗口時會退出進程,找到錯誤修改后,還需要使用start啟動。


轉載于:https://blog.51cto.com/zlfwmm/1847437

總結

以上是生活随笔為你收集整理的activemq启动异常的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。