此内容没有您所选择的语言版本。
2.3. Installing and Configuring the JBoss ON Server
The JBoss ON server binaries are installed simply by unzipping the packages. After that, then the specific server instance must be configured. This can be done through a simple, web-based installer or by editing the configuration file manually and configuring it silently.
Note
See Chapter 5, Troubleshooting Installation and Upgrade if there are any problems during the install process.
- Stop any currently running JBoss ON instances.
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh stop
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow Warning
If the new JBoss ON server will use a database that existing JBoss ON instances are also using, then all of the existing JBoss ON instances have to be stopped. Otherwise, the installer will hang when it tries to contact the database and the database is unavailable because it is in use by another JBoss ON server. - Download the JBoss ON binaries from the Customer Support Portal.
- In the Customer Support Portal, click Software, and then select JBoss Operations Network in the product drop-down box.
- Download the JBoss Operations Network 3.0 Base Distribution package by clicking the Download icon.
- There are additional plug-in packs available for EAP, EDS, EWS, and SOA-P. If any of those plug-ins will be used with the JBoss ON server, then download them as well.
- Unzip the server distribution to the directory where will be executed from.
cd /opt unzip jon-server-3.0.0.GA1.zip
cd /opt unzip jon-server-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow This creates a version-specific installation directory,/opt/jon-server-3.0.0.GA1. A directory with this name should not exist prior to the unzip operation. - Install any additional agent plug-ins.Some JBoss applications (EWS, EDS, EAP, and SOA-P) have separate plug-ins, which are only available with special subscriptions. These agent plug-ins are part of JBoss ON can be be installed and enabled as part of the server installation process.
Note
Installing the EWS, EDS, EAP, or SOA-P plug-ins is not the same as deploying a custom agent plug-in or a server-side plug-in. Deploying custom plug-ins is done after JBoss ON server installation and is described in the Basic Admin Guide.- Unzip the additional plug-in packs that were downloaded from the Customer Support Portal in step 2.
unzip jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zip -d /opt/jon/jon-server-3.0.0.GA1/
unzip jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zip -d /opt/jon/jon-server-3.0.0.GA1/Copy to Clipboard Copied! Toggle word wrap Toggle overflow This creates a subdirectory with the namejon-plugin-pack-plugin_name-3.0.0.GA1/. - List the current contents of the JBoss ON server plug-in directory.
ls -l serverRoot/jon-server-3.0.0.GA1/jbossas/server/default/deploy/rhq.ear.rej/rhq-downloads/rhq-plugins
ls -l serverRoot/jon-server-3.0.0.GA1/jbossas/server/default/deploy/rhq.ear.rej/rhq-downloads/rhq-pluginsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the new plug-ins from the
jon-plugin-pack-plugin_name-3.0.0.GA1/directory to the JBoss ON server plug-in directory.cp /opt/jon/jon-server-3.0.0.GA1/jon-plugin-pack-plugin_name-3.0.0.GA1/* serverRoot/jon-server-3.0.0.GA1/jbossas/server/default/deploy/rhq.ear.rej/rhq-downloads/rhq-plugins
cp /opt/jon/jon-server-3.0.0.GA1/jon-plugin-pack-plugin_name-3.0.0.GA1/* serverRoot/jon-server-3.0.0.GA1/jbossas/server/default/deploy/rhq.ear.rej/rhq-downloads/rhq-pluginsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
- Run the JBoss ON server:
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh start
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the server UI at
http://localhost:7080/. - Clicking the Click here to continue the installation link brings you to the main installer page.
- By default, the installer displays only the typical settings required for installation. For more custom environments, click the Show Advanced Settings check box to display the advanced settings in the next two sections.
Important
Do not unselect the advanced settings checkbox after setting advanced values, or the advanced settings will be reset to the default values. - Set the database connection properties.The installation options are slightly different depending on the database configuration.
Important
With Oracle, selecting the overwrite tables option when there is nothing to overwrite causes an error message withErrorCode=[2289]. This can be ignored. - Set the basic connection information for the new JBoss ON server, such as its HTTP and HTTP ports.
- Set preliminary notification information for the JBoss ON server for alerts to use for SNMP and email notifications.
- Click the button to begin configuring the server. This can take several minutes, and a loading screen will be up until the server is configured and a redirect is available.
- When the server is configured, click the link to go to the UI.
- Log into the GUI using the user account with the default superuser and password,
rhqadmin/rhqadmin. The default username and password are predefined for the superuser; the password can be reset later.Note
Change the password for the superuser account,rhqadmin, when you first log in. Passwords are changed in the Administration > Users area.
2.3.2. Using the GUI Installer (Windows) 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Note
See Chapter 5, Troubleshooting Installation and Upgrade if there are any problems during the install process.
- Log into the Windows machine as Administrator. The server and plug-in packages must be installed as the Administrator account.
- Stop any currently running JBoss ON instances.
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat stop
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow Warning
If the new JBoss ON server will use a database that existing JBoss ON instances are also using, then all of the existing JBoss ON instances have to be stopped. Otherwise, the installer will hang when it tries to contact the database and the database is unavailable because it is in use by another JBoss ON server. - Download the JBoss ON binaries from the Customer Support Portal.
- In the Customer Support Portal, click Software, and then click the Product drop-down box arrow to open the JBoss Operations Network software download.
- Download the JBoss Operations Network 3.0 Base Distribution package by clicking the Download icon.
- There are additional plug-in packs available for EAP, EDS, EWS, and SOA-P. If any of those plug-ins will be used with the JBoss ON server, then download them as well.
- Create a directory for the server to be installed in.
mkdir C:\rhq
mkdir C:\rhqCopy to Clipboard Copied! Toggle word wrap Toggle overflow Important
Do not install the server in a directory with a path longer than 19 characters. Long path names can cause problems with executing some server tasks. Use a location such asC:\rhqrather thanC:\Documents and Settings\myusername. - Unzip the server distribution in the directory where will be executed from. For example, using 7-Zip:This creates a version-specific installation directory, such as
cd C:\rhq 7z e jon-server-3.0.0.GA1.zip
cd C:\rhq 7z e jon-server-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow C:\rhq\jon-server-3.0.0.GA1. A directory with this name should not exist prior to the unzip operation. - Install any additional agent plug-ins.Some JBoss applications (EWS, EDS, EAP, and SOA-P) have separate plug-ins, which are only available with special subscriptions. These agent plug-ins are part of JBoss ON can be be installed and enabled as part of the server installation process.
Note
Installing the EWS, EDS, EAP, or SOA-P plug-ins is not the same as deploying a custom agent plug-in or a server-side plug-in. Deploying custom plug-ins is done after JBoss ON server installation and is described in the Basic Admin Guide.- Unzip the additional plug-in packs that were downloaded from the Customer Support Portal in step 3. This creates a subdirectory with the name
jon-plugin-pack-plugin_name-3.0.0.GA1.cd C:\rhq 7z e jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zip
cd C:\rhq 7z e jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the new plug-ins from the
jon-plugin-pack-plugin_name-3.0.0.GA1directory to the JBoss ON server plug-in directory.
- Set the directory path to the JRE or JDK installation. For example:
set RHQ_SERVER_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_29
set RHQ_SERVER_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_29Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the JBoss ON server as a Windows service. This action must be "Run as Administrator."
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat install
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat installCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the JBoss ON server. This action must be "Run as Administrator."
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat start
C:\rhq\jon-server-3.0.0.GA1\bin\rhq-server.bat startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the server UI at
http://localhost:7080/.
2.3.3. Silently Installing the JBoss ON Server 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The initial setup of the server is the same as in Section 2.3.1, “Using the GUI Installer (Red Hat Enterprise Linux)”. Instead of using the visual, web-based installer, however, a silent installation loads a pre-configured properties file and starts the server with all of its configuration in place.
Note
This procedure uses command examples for Red Hat Enterprise Linux. If you are installing the server on a Windows server, then adapt the commands accordingly.
- Stop any currently running JBoss ON instances.
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh stop
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow Warning
If the new JBoss ON server will use a database that existing JBoss ON instances are also using, then all of the existing JBoss ON instances have to be stopped. Otherwise, the installer will hang when it tries to contact the database and the database is unavailable because it is in use by another JBoss ON server. - Download the JBoss ON binaries from the Customer Support Portal.
- In the Customer Support Portal, click Software, and then click the Product drop-down box arrow to open the JBoss Operations Network software download.
- Download the JBoss Operations Network 3.0 Base Distribution package by clicking the Download icon.
- There are additional plug-in packs available for EDS, EAP, EWS, and SOA-P. If any of those plug-ins will be used with the JBoss ON server, then download them as well.
- Unzip the server distribution to the directory from where it will be executed. For example, on Red Hat Enterprise Linux:
cd /opt unzip jon-server-3.0.0.GA1.zip
cd /opt unzip jon-server-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows, using 7-Zip:cd C:\rhq 7z e jon-server-3.0.0.GA1.zip
cd C:\rhq 7z e jon-server-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows systems, create or select a directory with a relatively short name. Path names longer than 19 characters can cause problems with executing some server tasks. Use a location such asC:\rhqrather thanC:\Documents and Settings\myusername. - Install the agent plug-ins. On Red Hat Enterprise Linux:
cd /opt/jon/jon-server-3.0.0.GA1 unzip jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zip
cd /opt/jon/jon-server-3.0.0.GA1 unzip jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows:cd C:\rhq 7z e jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zip
cd C:\rhq 7z e jon-plugin-pack-agent_plugin_name-3.0.0.GA1.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the JBoss ON server configuration properties file:
vim serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.properties
vim serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.propertiesCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the
rhq.autoinstall.enabledparameter to true to instruct the server to load the configuration automatically from file.rhq.autoinstall.enabled=true
rhq.autoinstall.enabled=trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the parameter to tell the server whether preserve the any existing data in the database. For a new installation, this can be set to
autoso the installer will supply the database schema.rhq.autoinstall.database=auto
rhq.autoinstall.database=autoCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, set the IP address or hostname for the server. If this is not set, then the server will detect it when it starts.
rhq.autoinstall.public-endpoint-address=server1.example.com
rhq.autoinstall.public-endpoint-address=server1.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the port numbers for the instance.
rhq.server.startup.web.http.port=7080 rhq.server.startup.web.https.port=7443
rhq.server.startup.web.http.port=7080 rhq.server.startup.web.https.port=7443Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the username and password to connect to the backend database. The password is stored in the properties file in an encoded form. Use the
generate-db-password.shscript to hash the password.serverRoot/jon-server-3.0.0.GA1/bin/generate-db-password.sh mypassword Encoded password: 1d31b70b3650168f79edee9e04977e34
serverRoot/jon-server-3.0.0.GA1/bin/generate-db-password.sh mypassword Encoded password: 1d31b70b3650168f79edee9e04977e34Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then, set the hashed password as therhq.server.database.passwordvalue.rhq.server.database.user-name=rhqadmin rhq.server.database.password=1d31b70b3650168f79edee9e04977e34
rhq.server.database.user-name=rhqadmin rhq.server.database.password=1d31b70b3650168f79edee9e04977e34Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Scan the rest of the database configuration to make sure that it corresponds to your specific database type and instance. The parameters, and some possible values for PostgreSQL and Oracle databases, are described in Table 2.2, “rhq-server.properties Parameters for Database Configuration”.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the JBoss ON server:
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh start
serverRoot/jon-server-3.0.0.GA1/bin/rhq-server.sh startCopy to Clipboard Copied! Toggle word wrap Toggle overflow
When the server starts, it loads the edited
rhq-server.properties file and is fully configured.
| Parameter | Description |
|---|---|
| rhq.server.database.type-mapping | Gives the type or vendor of the database that is used by the JBoss ON server. This is either PostgreSQL or Oracle. |
| rhq.server.database.connection-url | The JDBC URL that the JBoss ON server uses when connecting to the database. An example is jdbc:postgresql://localhost:5432/rhq or jdbc:oracle:oci:@localhost:1521:orcl. |
| rhq.server.database.driver-class | The fully qualified class name of the JDBC driver that the JBoss ON server uses to communicate with the database. An example is oracle.jdbc.driver.OracleDriver. |
| rhq.server.database.xa-datasource-class | The fully qualified class name of the JDBC driver that the JBoss ON server uses to communicate with the database. Examples of this are org.postgresql.xa.PGXADataSource or oracle.jdbc.xa.client.OracleXADatasource. |
| rhq.server.database.user-name | The name of the user that the JBoss ON server uses when logging into the database |
| rhq.server.database.password | The password of the database user that is used by the JBoss ON server when logging into the database. This password is stored in a hash. |
| rhq.server.database.server-name | The server name where the database is found. This must match the server in the connection URL. This is currently only used when connecting to PostgreSQL. |
| rhq.server.database.port | The port on which the database is listening. This must match the port in the connection URL. This is currently only used when connecting to PostgreSQL. |
| rhq.server.database.db-name | The name of the database. This must match the name found in the connection URL. This is currently only used when connecting to PostgreSQL. |
| rhq.server.quartz.driverDelegateClass | The Quartz driver used for connections between the server and the database. The value of this is set by the installer and depends on the type of database used to store the JBoss ON information. For PostgreSQL, this is org.quartz.impl.jdbcjobstore.PostgreSQLDelegate, and for Oracle, this is org.quartz.impl.jdbcjobstore.oracle.OracleDelegate. |