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启动异常的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [React Native] 解析JSO
- 下一篇: 为什么单例模式需要double chec