Đặc điểm kỹ thuật của hệ thống:
- CPU - 2,4 Ghz (4 lõi)
- Bộ nhớ - 4 GB
- Dung lượng ổ cứng - 60 GB
- Tên máy chủ - appserver-02.example.com
- Địa chỉ IP - 192.168.116.130/24
- Hệ điều hành - CentOS 7.6
- Máy chủ Weblogic Oracle - 12.2.1.3
Cài đặt Oracle Java Development Kit (JDK) 8 trên CentOS 7
[root@appserver-02 ~]# cd /soft
[root@appserver-02 soft]# rpm -ivh jdk-8u191-linux-x64.rpm
warning: jdk-8u191-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:jdk1.8-2000:1.8.0_191-fcs ################################# [100%]
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
[root@appserver-02 ~]# echo "export JAVA_HOME=/usr/java/jdk1.8.0_191-amd64" >> /etc/profile
[root@appserver-02 ~]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
Cài đặt Oracle Weblogic Server 12c trên CentOS 7
[root@appserver-02 ~]# groupadd -g 1001 oinstall
[root@appserver-02 ~]# useradd -u 1001 -g oinstall oracle
[root@appserver-02 ~]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@appserver-02 ~]# mkdir -p /u01/app/oracle/product/12.2.1
[root@appserver-02 ~]# mkdir -p /u01/app/oracle/config/{domains,applications}
[root@appserver-02 ~]# chown -R oracle:oinstall /u01/app
[root@appserver-02 ~]# chmod -R 775 /u01
[root@appserver-02 ~]# su - oracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.1
export MW_HOME=$ORACLE_HOME
export WLS_HOME=$MW_HOME/wlserver
export DOMAIN_BASE=$ORACLE_BASE/config/domains
export DOMAIN_HOME=$DOMAIN_BASE/mydomain
[oracle@appserver-02 ~]$ cd /soft
[oracle@appserver-02 soft]$ unzip fmw_12.2.1.3.0_wls_Disk1_1of1.zip
Archive: fmw_12.2.1.3.0_wls_Disk1_1of1.zip
inflating: fmw_12.2.1.3.0_wls.jar
inflating: fmw_12213_readme.htm
[oracle@appserver-02 soft]$ java -jar fmw_12.2.1.3.0_wls.jar
Launcher log file is /tmp/OraInstall2018-12-26_07-49-54PM/launcher2018-12-26_07-49-54PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2394.573 MHz Passed
Checking monitor: must be configured to display at least 256 colors. Actual unknown. Failed <<<<
Checking swap space: must be greater than 512 MB. Actual 2047 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Checking temp space: must be greater than 300 MB. Actual 31507 MB Passed
Some system prerequisite checks failed.
You must fulfill these requirements before continuing.
Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation.
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-12-26_07-49-54PM
Thiết lập vị trí cho thư mục Oracle Inventory và group hệ điều hành đã tạo để quản lý hữu phần mềm Oracle Weblogic Server 12c.Quá trình cài đặt Oracle Weblogic Server 12c.
Cấu hình Oracle Weblogic Server 12c trên CentOS 7
[oracle@appserver-02 soft]$ $ORACLE_HOME/oracle_common/common/bin/config.sh
Thiết lập Weblogic Domain home và nhấn Next
[root@appserver-02 ~]# firewall-cmd --permanent --add-port=7001/tcp
success
[root@appserver-02 ~]# firewall-cmd --reload
success
[oracle@appserver-02 soft]$ mkdir -p $DOMAIN_HOME/servers/AdminServer/security/
[oracle@appserver-02 soft]$ echo "username=weblogic" > $DOMAIN_HOME/servers/AdminServer/security/boot.properties
[oracle@appserver-02 soft]$ echo "password=weblogic123" >> $DOMAIN_HOME/servers/AdminServer/security/boot.properties
Khởi động Weblogic Server.[oracle@appserver-02 soft]$ $DOMAIN_HOME/startWebLogic.sh &