Security-enabled WebSphere application Server, which often needs to enter a user name and password when stopping the service during routine maintenance.
The way to stop is as follows:
[Email protected]/]#/opt/ibm/websphere/appserver/profiles/appsrv01/bin/stopnode.sh-username Wasadmin-password Wisedu123
The operating system's history commands allow you to view specific user names and passwords, because they are written in clear text at execution time and may not be well-qualified in some scenarios.
Because there are two ways to connect: Soap and RMI, the default is SOAP mode
Now give the second option.
[[email protected]/] #export $PROFILE _home=/opt/ibm/websphere/appserver/profiles
[Email protected]/]CD $PROFILE _home/dmgr01/properties
Then first back up the Sas.client.props and soap.client.props these two files
1. Modification of the SOAP method
Modify the Soap.client.props file, approximately on line 26th
[email protected]/]vi Soap.client.props
Com.ibm.soap.loginuserid=
com.ibm.soap.loginpassword=
By default, the value is empty, fill in the user and password that is currently in use,
Com.ibm.soap.loginuserid=wasadmin
Com.ibm.soap.loginpassword=wisedu123
After you modify it, save the file.
Then execute:
[[email protected]/] $PROFILE _home/dmgr01/bin/./propfilepasswordencoder.sh/opt/ibm/websphere/appserver/ Profiles/dmgr01/properties/soap.client.props Com.ibm.SOAP.loginPassword
Note:all specified passwords already encoded in target file = =/opt/ibm/websphere/appserver/profiles/appsrv01/bin/. /properties/soap.client.props
After successful execution, open the Soap.client.props file to see that the password is encrypted, as follows
[Email protected] properties]# more Soap.client.props
#Tue Nov 14:46:23 CST 2013
Com.ibm.ssl.alias=defaultsslsettings
Com.ibm.soap.loginsource=prompt
com.ibm.soap.loginpassword={xor}jtaqmjaznjfsbw\=\=
com.ibm.soap.requesttimeout=180
com.ibm.soap.loginuserid=01110033
Com.ibm.soap.securityenabled=false
Then stop the was service to stop directly with the following command, no need to enter the user name and password.
[Email protected] ~]#/opt/ibm/websphere/appserver/profiles/dmgr01/bin/stopmanager.sh
"Note": Similarly, to modify its AppSrv01 configuration file, the save takes effect.
-------------------------EOF-------------------------
WebSphere Stop service does not need to enter account password