Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ ActiveMQ5.10.2 version configuration JMX     - Use SecureCRT to transfer files between Linux and Windows (Linux)

- Linux garbled file delete method (Linux)

- Java implementation file encryption and decryption (Programming)

- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)

- AFNetworking + Nginx HTTPS communication server + (Server)

- Linux mount command Detailed (Linux)

- CentOS x86 64bit upgrade to 2.7 Python2.6 (Linux)

- How to defragment the hard disk in Linux (Linux)

- ARM assembler instruction debugging method (Programming)

- Mongo-connector integrated MongoD to achieve incremental Solr index (Server)

- Oracle table Access Control (Database)

- Linux modify the system time (Linux)

- The default permissions for files and directories under Linux computing (Linux)

- The need to avoid a gap of InnoDB lock (Database)

- CentOS 6.5 boot automatically mount the hard drive (Linux)

- Ubuntu 14.04 Boot Repair (Linux)

- Git Installation and Configuration (Network Agent settings) (Linux)

- Ubuntu install VMware Workstation 11 tutorials at 14.04 / 14.10 (Linux)

- Linux environment password security settings (Linux)

- Save the database data files into Oracle Learning (Database)

 
         
  ActiveMQ5.10.2 version configuration JMX
     
  Add Date : 2018-11-21      
         
         
         
  One of the characteristics is a good support for ActiveMQ JMX. Through JMX MBeans can easily monitor and control the ActiveMQ broker.

JMX properties in view of the official website for instructions for remote access configuration process is not very complete, the author in the actual configuration also go a little detour. Therefore, this paper will be based on the actual experience of the author, respectively, explain how to configure ActiveMQ under windows and Linux environments JMX remote access. In addition, but also to explain from "is a password protected" aspect.

JMX client environment This article Windows7 under JDK1.7.

Not password protected remote access

Configuration is not password-protected remote access is very simple, just slightly modified activemq.xml configuration can be. Configuration is as follows:

Window platform

Join useJmx attribute node, and modify < managementContext> node createConnector properties:

< Broker ... useJmx = "true">
...
    < ManagementContext>
        < ManagementContext createConnector = "true" />
    < / ManagementContext>
< / Broker>
Among them, the default access port is 1099, you can also < managementContext> node connectorPort property changes. After starting activemq, log the following message indicates that the configuration was successful.

 INFO | JMX consoles can connect to service: jmx: rmi: /// jndi / rmi: // localhost: 1099 / jmxrmi
Windows7 command line to start jconsole, select the "remote process", enter localhost replace actual IP after the above information in the URL, the need for a username and password. To link successfully.

Linux platform

Under Configuration and windows Lunix platform is exactly the same, but for an additional increase in the following configuration:

< Broker ... useJmx = "true">
...
    < ManagementContext>
        < ManagementContext createConnector = "true" connectorHost = "native IP" />
    < / ManagementContext>
< / Broker>
 Or modify the Linux server system files / etc / hosts localhost in the setting, the actual change 127.0.0.1 IP (not recommended).

Otherwise, clients can not access JMX by replacing localhost into actual IP after remote.

Password-protected remote access

Password-protected configuration is relatively complex, the need to modify the JVM parameters, the main steps are as follows:

Window platform

First, confirm the default ActiveMQ connector has been closed. Note createConnector = false

< Broker ... useJmx = "true">
...
    < ManagementContext>
        < ManagementContext createConnector = "false" />
    < / ManagementContext>
< / Broker>
Second, confirmed jmx.access (user rights) and jmx.password (user password) two files (the default installation will be) under the conf directory, and filled out in accordance with the format (refer to the official documentation)

Third, modify the read permission jmx.password, the purpose is in addition to the home user, the other user does not have permission to read and write, this is difficult, for win7 system I use, modify as follows.

Right jmx.password File> Properties> Security> Advanced> permissions, the "Include inheritable from the parent object permissions" ticked off, a warning pops up select "Add"

        Then remove all users, all the way OK. In this case the file has been unable to access and modify. If you want to re-edit the content, right jmx.password File> Properties> Security> Advanced> Permissions> Add to add the user to come.

Fourth, modify bin \ activemq.bat file. Setting set SUNJMX = statement found at, not primarily with REM (comment out) the value of that line SUNJMX

set SUNJMX = -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port = 1616 -Dcom.sun.management.jmxremote.ssl = false -Dcom.sun.management.jmxremote.password.file =% ACTIVEMQ_BASE % / conf / jmx.password -Dcom.sun.management.jmxremote.access.file =% ACTIVEMQ_BASE% / conf / jmx.access
Well, now through jconsole remote link, fill in the URL, note that port 1616, enter the user name and password, the connection is successful.

About winxp and other details, reference http://docs.Oracle.com/javase/1.5.0/docs/guide/management/agent.html#PasswordAccessFiles, and How to a Secure Password File on Microsoft Windows Systems.

Linux platform

Step under Linux and windows like this:

First, set the createConnector = false

Second, confirm jmx.access and jmx.password two files and content

Third, on the authority jmx.password files under Linux easier, you can execute the following command

chmod 600 jmxremote.password
Fourth, modify bin \ activemq file, the following 4-line comments liberalized. Note that this is not SUNJMX, not the same as with windows.

# ACTIVEMQ_SUNJMX_START = "- Dcom.sun.management.jmxremote.port = 11099"
# ACTIVEMQ_SUNJMX_START = "$ ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file = $ {ACTIVEMQ_CONF} /jmx.password"
# ACTIVEMQ_SUNJMX_START = "$ ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file = $ {ACTIVEMQ_CONF} /jmx.access"
# ACTIVEMQ_SUNJMX_START = "$ ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl = false"
Now, the Linux platform can also be achieved password-protected remote access to the.

to sum up

About JMX configuration of remote access have been to explain finished, we sum up the main configuration carried out:

When the password is not required, only modify activemq.xml configuration can be;

When a password is required, turn off the default link, modify JVM arguments in the script, directed the password file. The difficulty is to modify the password file permissions.
     
         
         
         
  More:      
 
- MongoDB, Cassandra, HBase transaction design strategy (Database)
- B-tree - ideas and implementation of C language code (Programming)
- Ubuntu 14.10 installation GNOME 3.14 (Linux)
- STL source code analysis - iterator each container classification (Programming)
- Ubuntu deploying Solr (4.4) to Tomcat (7.0.53) (Server)
- Linux System Getting Started Learning: the Linux Wireshark interface dead solve (Linux)
- MySQL binlog group to submit XA (two-phase commit) (Database)
- Installation Sublime Text 3 (Build 3065) text editor in Ubuntu (Linux)
- Disk Management LVM (Linux)
- Linux system security settings (Linux)
- Oracle user password problem (Database)
- Linux Command Line Art (Linux)
- GitLab issued Merge Request return error 500 when the two solutions log (Linux)
- PULL operation mechanism parsing XML Comments (Programming)
- 10 useful Linux command line tips (Linux)
- Python common data type summary (Programming)
- Installation and configuration of phpMyAdmin under CentOS (Database)
- ASM learning overview (Database)
- The Linux C truncate function clears the file notes (Programming)
- True and false in Perl (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.