ActiveMQ Server for Debian

来源:互联网 发布:零信誉淘宝店铺出售 编辑:程序博客网 时间:2024/04/20 13:57

该文档其实是部署包中的一个说明文件,对于在ubuntu上部署和使用ActiveMQ有很大帮助。


ActiveMQ Server for Debian==========================Disabled features-----------------This package doesn't contains (yet) all features provided by upstreamas some dependencies are missing from Debian.For a list of disabled modules, you can look at  /usr/share/doc/libactivemq-java/README.DebianMain ActiveMQ instance----------------------Current package provide a default ("main") instance for ActiveMQ.As of now, this instance only listen on loopback interface (127.0.0.1)on port 61616, with OpenWire protocol enabled.Messages storage is handled by kahadb in /var/lib/activemq/main/data/kahadbYou can customize its environnement here :  cp /usr/share/activemq/activemq-options /etc/activemq/instances-available/main/optionsEdit the file /etc/activemq/instances-available/main/options and restart it.And it's XML configuration can be edited here :  /etc/activemq/instances-available/main/activemq.xmlEnable it: ln -s /etc/activemq/instances-available/main \ /etc/activemq/instances-enabled/mainStart it :  invoke-rc.d activemq startDebug an ActiveMQ instance--------------------------You can start any ActiveMQ instance in foreground for debugging.Start instance `foo` in forground:  # /etc/init.d/activemq console fooSetup a new ActiveMQ instance-----------------------------To create a new instance, you have to :  mkdir /etc/activemq/instances-available/<instancename>Create your own configuration into /etc/activemq/instances-available/<instancename>/activemq.xmlFor example, you can copy a sample configuration :  cp /etc/activemq/instances-available/main/* \  /etc/activemq/instances-available/<instancename>/If you need some other Xms / Xmx settings or want to use another JDK:  cp /usr/share/activemq/activemq-options \  /etc/activemq/instances-available/<instancename>/options  In this file, you can modify ACTIVEMQ_BASE if you want to store  your data elsewhere than /var/lib/activemq/<instancename>/ or  JAVA_HOME if you want to use another JDK.Register this instance into enabled:  ln -s /etc/activemq/instances-available/<instancename> \  /etc/activemq/instances-enabled/<instancename>Start it :  invoke-rc.d activemq start

原创粉丝点击