此内容没有您所选择的语言版本。
7.2. Changing Database Passwords
The JBoss ON server connects to its database instance as a database user. It does this automatically, using the credentials given in its
rhq-server.properties file. The database password is encoded automatically by the installer before it is stored in the rhq-server.properties file, to provide some extra protection against unauthorized access to the database password.
It's possible that the password for that database user account is changed. This change always occurs at the database, not in JBoss ON, so the password in the
rhq-server.properties file has to be manually encoded and updated for JBoss ON to continue to function.
- Change the password for the JBoss ON user (
rhqadminby default) in the database. - Use the
generate-db-password.shscript to encode the password.serverRoot/bin/generate-db-password.sh mypassword Encoded password: 1d31b70b3650168f79edee9e04977e34
serverRoot/bin/generate-db-password.sh mypassword Encoded password: 1d31b70b3650168f79edee9e04977e34Copy to Clipboard Copied! Toggle word wrap Toggle overflow JBoss ON stores its database password in an encoded form in therhq-server-propertiesfile. Therefore, the new database has to be properly encoded before it's added to therhq-server-propertiesfile so that the server reads it correctly. - Edit the
rhq.server.database.passwordvalue in therhq-server.propertiesfile so that it has the new encoded password value.vim serverRoot/bin/rhq-server.properties rhq.server.database.password=1d31b70b3650168f79edee9e04977e34
vim serverRoot/bin/rhq-server.properties rhq.server.database.password=1d31b70b3650168f79edee9e04977e34Copy to Clipboard Copied! Toggle word wrap Toggle overflow