This manual describes the configuration of the Oracle WebLogic Server Node Manager. The following points are addressed.
– Configuring credentials Admin Server
– Configuring user node manager with secure login details
– Start stop Admin Server from the Node Manager.
– Automatic start Managed Servers.
Create boot.properties
1 2 3 4 5 6 7 8 |
prompt> su - oracle oracle> cd $MW_HOME/user_projects/domains/AREA51_SOA/servers/AdminServer/ oracle> mkdir security oracle> cd security oracle> vi boot.properties username=weblogic password=WebL0gic oracle> chmod 640 boot.properties |
Starting the Nodemanager
Start the Node Manager in a separate terminal. After starting the Node Manager nodemanager.properties the file is created.
1 2 |
oracle> cd $MW_HOME/wlserver_10.3/server/bin oracle> nohup ./startNodeManager.sh & |
Starting Weblogic
Start weblogic, the data in the boot.properties wil be encrypted.
1 2 |
oracle> cd $MW_HOME/user_projects/domains/AREA51_SOA/bin oracle> nohup ./startWebLogic.sh & |
Create seperate user for the Nodemanager
First you have to connect to Oracle WebLogic Admin Server, it is started by default after configuring a domain.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
oracle> $WLS_SERVER/common/bin/wlst.sh wls:/offline> connect('weblogic','WebL0gic','t3://tss16.tss.local:7001') edit() startEdit() secConfig = cmo.getSecurityConfiguration() secConfig.setNodeManagerUsername('nodemanager') secConfig.setNodeManagerPassword('WebL0gic') save() activate() disconnect() exit() |
Secure the Nodemanager
1 2 3 4 5 6 7 8 9 |
oracle> mkdir -p /u01/app/oracle/config/servers/Nodemanager oracle> $MW_HOME/wlserver_10.3/common/bin/wlst.sh wls:/offline> connect('weblogic','webL0gic','t3://tss16.tss.local:7001') wls:/AREA51_SOA/serverConfig> storeUserConfig(userConfigFile='/u01/app/oracle/config/servers/Nodemanager/WLSConfig.properties',userKeyFile='/u01/app/oracle/config/servers/Nodemanager/WLSKey.properties') Creating the key file can reduce the security of your system if it is not kept in a secured location after it iscreated.Do you want to create the key file? y or n <span style="color: #ff0000;">Antwoord met y</span> The username and password that were used for this WebLogic Server connection are stored in /u01/app/config/nodemanagers/WLSConfig.properties and /u01/app/oracle/config/nodemanagers/WLSKey.properties. wls:/offline> exit() |
Stop the Nodemanager
1 2 |
oracle> ps -ef | grep nodemanager. oracle> kill -9 <process-id> |
Automatic restart of the Managed servers
To ensure that the Node Manager automatically restart after a system crash or for some other reason, the nodemanager.properties file will need to be adjusted. Note The nodemanager.properties is only created after the Node Manager started again and stopped.
1 2 3 4 5 6 7 8 9 |
oracle> cd $MW_HOME/wlserver_10.3/common/nodemanager oracle> cp nodemanager.properties nodemanager.properties_bck oracle> vi nodemanager.properties Onderstaande aanpassen in het bestand voor de automatische herstart CrashRecoveryEnabled=true StartScriptEnabled=true StopScriptEnabled=true |
Starting Nodemanager.
1 2 |
oracle> cd $MW_HOME/wlserver_10.3/server/bin oracle> nohup ./startNodeManager.sh & |
Start the Admin Server with the Nodemanager.
Start/Stop/Status Admin and Managed Servers
1 2 3 4 5 6 7 8 9 10 11 12 13 |
oracle> $MW_HOME/wlserver_10.3/common/bin/wlst.sh wls:/offline> nmConnect('nodemanager','WebL0gic','tss16.tss.local','5556','AREA51_SOA','/u01/app/oracle/product/middleware/user_projects/domains/AREA51_SOA') Starten nmStart('AdminServer') nmStart('soa_server1') Stoppen nmKill('AdminServer') nmKill('soa_server1') Status nmServerStatus('AdminServer') nmServerStatus('soa_server1') |
Java Security
The urandom parameter in the java.security file is mostly involved when ssl is configured in the middleware environment.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
prompt> su - root> cd /usr/java/jdk1.7.0_21/jre/lib/security root> vi java.security Change securerandom.source=file:/dev/urandom in securerandom.source=file:/dev/./urandom :wq! |
Please let me know if this manual ‘Configuration Oracle Weblogic Server Nodemanager’ was usefull to you. If there are errors or you have suggestions regarding this manual, please let me know.
No rights can be derived from this manual
Regards,
Maarten