activemq啓動異常

activemq啓動異常java

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

[root@jms2 bin]# ./activemq startide

INFO: Using default configurationthis

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


INFO: Invoke the following command to create a configuration file.net

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


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')orm



查詢到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啓動。

相關文章
相關標籤/搜索