Startup
Test Configuration
To start the WebLogic AdminServer:
cd <domain>/bin ./startWebLogic.sh
If the server will not start cleanly, check the "config/config.xml" file.
Look at the defined "listen-address" for the AdminServer.
Start the managed nodes like so...
./startManagedWebLogic.sh engine1 ./startManagedWebLogic.sh engine2
Look at the terminal output. Save the CLASSPATH and startup line.
Example CLASSPATH:
Example Startup:
We will use these values when configuring Node Manager.
Production Mode
To start WebLogic in 'production' mode, create a file called 'boot.properties'.
Place this file in the 'security' folder of the AdminServer...
Set the contents like this...
username=weblogic password=weblogic123
Node Manager
Kill engine1 & engine2. (Ctrl+C)
Modify the nodemanager.properties file (found in <domain>/nodemanager).
ListenAddress=0.0.0.0 SecureListener=false weblogic.StartScriptEnabled=false
Start the Node Manager manually...
./startNodeManager.sh
Login to the console...
Create machines for each physical server in the cluster:
- Change type from SSL to plain
- Change the listen address from localhost to the hostname of the server
- Add the desired server to each machine
- Add the classpath to the server's "Server Start" page (required)
- Add optional startup arguments (revisit during performance tuning)
Note: It is unnecessary to create a machine for the AdminServer.
Start the servers from the admin console to test.
Verify the startup parameters are how you like them...
ps -eaf | grep java
Startup Scripts
NodeManager
Create new file /etc/systemd/system/nodemanager.service:
## create new file /etc/systemd/system/nodemanager.service for nodemanager, then systemctl daemon-reload [Unit] Description=Controls Node Manager Lifecycle After=network.target sshd.service [Service] User=oracle Group=oinstall Type=simple WorkingDirectory=/opt/oracle/occas71/user_projects/domains/usbank ExecStart=/opt/oracle/occas71/user_projects/domains/usbank/bin/startNodeManager.sh ExecStop=/opt/oracle/occas71/user_projects/domains/usbank/bin/stopNodeManager.sh Restart=on-failure RestartSec=1 KillMode=process LimitNOFILE=65535 [Install] WantedBy=default.target
AdminServer
Create new file /etc/systemd/system/weblogic.service
## create new file /etc/systemd/system/weblogic.service for weblogic admin server, then systemctl daemon-reload [Unit] Description=Controls WebLogic Admin Server Lifecycle After=network.target sshd.service [Service] User=oracle Group=oinstall Type=simple WorkingDirectory=/opt/oracle/occas71/user_projects/domains/usbank ExecStart=/opt/oracle/occas71/user_projects/domains/usbank/bin/startWebLogic.sh ExecStop=/opt/oracle/occas71/user_projects/domains/usbank/bin/stopWebLogic.sh Restart=on-failure RestartSec=1 KillMode=process LimitNOFILE=65535 [Install] WantedBy=default.target
Now enable / start them
systemctl daemon-reload systemctl enable nodemanager systemctl start nodemanager systemctl enable weblogic systemctl start weblogic
Verify the AdminServer is running.
Verify you can start the managed servers.