Installation & Configuration Steps
- Verify Virtual Machine Details
- Ensure you have the SSH root credentials to the VM
- root@<HOST-NAME>
- Verify HW details
- $cat /proc/cpuinfo
- $free -m
- Verify OS details via following commands:
- $cat /etc/oracle-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
- $cat /etc/redhat-release
Oracle Linux Server release 6.7
- $uname -a
Linux <HOST-NAME> 3.8.13-44.1.1.el6uek.x86_64 #2 SMP Wed Sep 10 06:10:25 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
- Ensure you have the SSH root credentials to the VM
- Create weblogic user and group
- $groupadd -g 1000 weblogic
- $useradd -u 1100 -g weblogic weblogic
- $passwd weblogic (give password as weblogic)
- Create weblogic installation directory
- $mkdir /opt/oracle
- $chown -R weblogic:weblogic /opt/oracle
- $chmod -R 775 /opt/oracle
- Download Weblogic 12c (12.2.1) installable
- Install Weblogic 12c
- Verify Java 8 is installed
- $which java
- $java -version
Java(TM) SE Runtime Environment (build 1.8.0_91)
- Verify Java 8 is installed
- Perform Silent installation of Weblogic 12c
- Add the following entries into /home/weblogic/.bash_profile file:
export MW_HOME=/opt/oracle/middleware export WLS_HOME="${MW_HOME}/wlserver" export WL_HOME="${WLS_HOME}"
# Set to appropriate JAVA_HOME. export JAVA_HOME=/usr/java/jdk1.8.0_91 export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export PATH
- Switch to weblogic user
$su - weblogic
- Create directory /opt/oracle
$mkdir /opt/oracle/middleware
- Copy weblogic installer zip from /root to /opt/oracle folder and unpack it
Create response file "wls.rsp" ($vi wls.rsp) and put following entries: [ENGINE] Response File Version=1.0.0.0.0 [GENERIC] ORACLE_HOME=/opt/oracle INSTALL_TYPE=WebLogic Server
- Run the Quick Installer
$java -jar fmw.....jar ORACLE_HOME=/opt/oracle/middleware -silent -responseFile /opt/oracle/wls.rep
- Perform Silent installation of Weblogic 12c
- Create Domain
- Connect to machine via VNC Clinet
- Run the domain creation script
$. /opt/oracle/middleware/oracle_common/common/bin/config.sh
Give the Domain path as /opt/oracle/middleware/user_projects/domains/MyDomain and select all default options
Provide Username password as "weblogic:weblogic"
- Start the Admin Server
- Come back to SSH CLI mode on VM
$su - weblogic
$cd /opt/oracle/middleware/user_projects/domains/MyDomain
$nohup ./startWebLogic.sh &
- Open web browser and hit the URL "http://<HOST-NAME>:7001/console/login/LoginForm.jsp" and enter credentials as "weblogic/weblogic"
- Go to Enviornment -> Servers -> AdminServer -> General Tab -> Change Listen Port from 7001 to 7000.
- Go to AdminServer -> Control Tab -> Stop the Server
- Start the Server again:
$cd /opt/oracle/middleware/user_projects/domains/MyDomain
$nohup ./startWebLogic.sh &
- Open web browser and hit the URL "http://<HOST-NAME>:7000/console/login/LoginForm.jsp" and enter credentials as "weblogic/weblogic"
- Create Machines
- Select from left tree "MyDomain -> Enviornment -> Machines" and click "New"
- Provide name as "licremmt04" and Os as "Unix", and click "Next"
- Select Type as "Plain", Address as "<HOST-NAME>", Port as "5556" and click "Finish"
- Create Servers
- Create Server: MyServer-1
- Select from left tree "MyDomain -> Enviornment -> Servers" and click "New"
- Provide Server name as "MyServer-1", Listen address as "<HOST-NAME>", Port as "8080", select "No, this is a stand-alone server.", and Click "Finish"
- Navigate to the MyServer-1 management page by clicking the MyServer-1 name entry in the Summary of Servers table.
- In the general tab, select "<HOST-NAME>" in the Machine drop-down box, disable "SSL Listen Port Enabled" and Click Save.
- In the Server Start tab, ether the following information and click save
- Java Home as "/usr/java/jdk1.8.0_91/"
- Java Vendor as "Oracle"
Arguments as
-Xms1024m -Xmx3076m -Djava.library.path=/opt/oracle/middleware/wlserver/server/native/linux/x86_64/
- Start the Servers
- kill all running java processes using $killall java
- Make the Server to NodeManager communication non-SSL
$vi /opt/oracle/middleware/user_projects/domains/MyDomain/nodemanager/nodemanager.properties
Have change as: SecureListener=false
- Start the NodeManager
- Set NodeManager Path:
$vi /opt/oracle/middleware/wlserver/server/bin/startNodeManager.sh
Set value: NODEMGR_HOME="${WL_HOME}/../user_projects/domains/MyDomain/nodemanager"
- come out from vi editor
$nohup ./startNodeManager.sh &
- Set NodeManager Path:
- Start the AdminServer
$cd /opt/oracle/middleware/user_projects/domains/MyDomain
$nohup ./startWebLogic.sh &
- Start all Servers
- Open Web Browser and login to Admin Conole: http://<HOST-NAME>:7000/console/login/LoginForm.jsp
- Select from left tree "MyDomain -> Enviornment -> Servers"
- Select the following Server, go to its management page, click on "Control" tab and click on "Start" button at the bottom:
- MyServer-1
Thank You!
No comments:
Post a Comment