activemq启动异常
activemq啟動(dòng)異常
執(zhí)行activemq啟動(dòng)命令start,輸出正常提示信息,activemq.log日志也正常,但進(jìn)程沒(méi)有起來(lái),沒(méi)有其他任何異常信息:
[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')
查詢(xún)到console啟動(dòng)命令,啟動(dòng)后發(fā)現(xiàn)有錯(cuò)誤日志輸出:
[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)
錯(cuò)誤: 必須限制口令文件讀取訪(fǎng)問(wèn)權(quán)限: /usr/local/activemq-5.6.0-master/conf/jmx.password
修改jmx.password的權(quán)限:
-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
第二次報(bào)錯(cuò)如下,必須使用console命令啟動(dòng)才能看到錯(cuò)誤:
錯(cuò)誤: 代理拋出異常錯(cuò)誤: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: jms2: jms2: 未知的名稱(chēng)或服務(wù)
console啟動(dòng)命令屬于非后臺(tái)運(yùn)行,當(dāng)關(guān)閉shell窗口時(shí)會(huì)退出進(jìn)程,找到錯(cuò)誤修改后,還需要使用start啟動(dòng)。
轉(zhuǎn)載于:https://blog.51cto.com/zlfwmm/1847437
總結(jié)
以上是生活随笔為你收集整理的activemq启动异常的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: [React Native] 解析JSO
- 下一篇: mysql 导出select语句结果到e