此内容没有您所选择的语言版本。
7.2. Installing the Agent from RPM
The JBoss ON agent is installed through the
jboss-on-agent-3.3
package. This package installs all of the agent files, creates a specific JBoss ON agent system user, and configures the JBoss ON agent as a system service.
Important
This procedure is for installing and managing an agent on a platform which will be managed by JBoss ON.
If this system hosts a JBoss ON server, then install the agent as part of the server installation process, as described in Chapter 3, Installing the JBoss ON Server. An agent on the same machine as a JBoss ON server cannot be installed or managed through the agent RPM. It must be installed and managed using the rhqctl script.
7.2.1. Installing Using yum 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Prior to installation, ensure you have added the relevant Red Hat JBoss Enterprise Application Platform repository, as detailed in the preceeding section Section 7.1.5, “Enabling a repository providing the JBoss ON Agent”.
Note
Installing the RPM requires specific entitlements for the RHN user account for the 3.3 release. This RHN user account must be used to register the system to have access to the appropriate repositories.
- Use yum to install the package.
yum install jboss-on-agent-3.3
[root@server ~]# yum install jboss-on-agent-3.3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This installs the agent in/usr/share/jboss-on-3.3.2.GA/agent
. - Configure the agent by running the service jon-agent config command. This runs through the advanced installer to configure the agent.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The config command runs through all of the advanced setup options, which configures three areas of the agent:- The agent connection information, used to register the agent to the server
- The agent name
- The agent port
- The agent host (by hostname or IP address)
- The agent-server communication settings, which include configuring SSL or secure connections and rules on how frequently the agent communicates with the agent
- The agent protocol, either socket (regular) or sslsocket (secure)For sslsocket, the JBoss ON server needs to be configured to accept SSL connections, as in the SSL chapter of Configuring JBoss ON Servers and Agents.
- Any client transport parameters to use to connect to the serverBoth the server and the agent use JBoss Remoting for communication. JBoss Remoting allows servers and clients to pass connection settings using a URL-style address. Transport parameters include things like pool sizes, timeout periods, and buffer settings. For the complete list, see the JBoss Remoting client parameters documentation.
- The server protocol which the agent uses to send messages to the server, either servlet (regular) or sslservlet (secure)The server connection settings configured on the agent must match the configuration in the server itself.
- Any server transport parameters to use to receive messages from the agentBoth the server and the agent use JBoss Remoting for communication. JBoss Remoting allows servers and clients to pass connection settings using a URL-style address. Transport parameters for the server relate to the servlet used to receive agent messages.
- The JBoss ON server to register with
- The server host (by hostname or IP address)
- The server port
- The server alias, a short nickname to identify the server instance
- Start the agent.
sudo service jon-agent start
[jsmith@server ~]$ sudo service jon-agent start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2.2. Installing by Downloading the RPM 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- Log into the Customer Portal at https://access.redhat.com.
- Click the Downloads tab.
- Click the Packages box to search for the agent RPM package.
- Enter jboss-on-agent as the package name, select the In the following architectures radio button, and set the appropriate architecture for the system.
- Click the package name, and then click the name for the latest agent RPM update.
- Scroll to the bottom of the page, and click the Download Package link and save the package to a convenient location on the system.
- Install using the rpm command. For example:
rpm -ivh /tmp/downloads/jboss-on-agent-3.3.2.GA.el6.noarch.rpm
[root@server ~]# rpm -ivh /tmp/downloads/jboss-on-agent-3.3.2.GA.el6.noarch.rpm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This installs the agent in/usr/share/jboss-on-3.3.2.GA/agent
. - Configure the agent by running the service jon-agent config command. This runs through the advanced installer to configure the agent.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The config command runs through all of the advanced setup options, which configures three areas of the agent:- The agent connection information, used to register the agent to the server
- The agent name
- The agent port
- The agent host (by hostname or IP address)
- The agent-server communication settings, which include configuring SSL or secure connections and rules on how frequently the agent communicates with the agent
- The agent protocol, either socket (regular) or sslsocket (secure)For sslsocket, the JBoss ON server needs to be configured to accept SSL connections, as in the SSL chapter of Configuring JBoss ON Servers and Agents.
- Any client transport parameters to use to connect to the serverBoth the server and the agent use JBoss Remoting for communication. JBoss Remoting allows servers and clients to pass connection settings using a URL-style address. Transport parameters include things like pool sizes, timeout periods, and buffer settings. For the complete list, see the JBoss Remoting client parameters documentation.
- The server protocol which the agent uses to send messages to the server, either servlet (regular) or sslservlet (secure)The server connection settings configured on the agent must match the configuration in the server itself.
- Any server transport parameters to use to receive messages from the agentBoth the server and the agent use JBoss Remoting for communication. JBoss Remoting allows servers and clients to pass connection settings using a URL-style address. Transport parameters for the server relate to the servlet used to receive agent messages.
- The JBoss ON server to register with
- The server host (by hostname or IP address)
- The server port
- The server alias, a short nickname to identify the server instance
- Start the agent.
sudo service jon-agent start
[jsmith@server ~]$ sudo service jon-agent start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow