Centos7-安裝Weblogic並配置 domain


1、創建用戶組
[root@localhost weblogic]# groupadd weblogic 
2、創建 tmn 用戶
[root@localhost weblogic]# useradd -g weblogic tmn
3、設置 tmn 用戶密碼
> [root@localhost weblogic]# passwd tmn

Changing password for user tmn.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost weblogic]#

4、切換至 tmn 用戶
[root@localhost opt]# su - tmn

[tmn@localhost ~]$

5、進入 wls1036_generic.jar 安裝包目錄
[tmn@localhost ~]$ cd /opt/weblogic/

[tmn@localhost weblogic]$ ll
total 1043464
-rwxrwxrwx 1 root root 1068506707 Dec 13 10:45 wls1036_generic.jar
[tmn@localhost weblogic]$ pwd
/opt/weblogic
[tmn@localhost weblogic]$

6、檢查 java 環境
[tmn@localhost weblogic]$ java -version

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

7、安裝 weblogic
[tmn@localhost weblogic]$ java -jar wls1036_generic.jar 

Enter [Exit][Next]> Next 

Enter new Middleware Home OR [Exit][Previous][Next]> Next 

Enter index number to select OR [Exit][Previous][Next]> 3

Enter [Yes][No]? No 

Enter [Yes][No]? Yes 

Enter index number to select OR [Exit][Previous][Next]> Next 

Enter index number to select OR [Exit][Previous][Next]> Next 

Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> Next 

Enter index number to select OR [Exit][Previous][Next]> Next

Enter [Exit][Previous][Next]> Next

Press [Enter] to continue or type [Exit]> 


8、進入 weblogic 配置腳本目錄,准備執行 config.sh 腳本
[tmn@localhost bin]$ cd /home/tmn/Oracle/Middleware/wlserver_10.3/common/bin

[tmn@localhost bin]$
[tmn@localhost bin]$ ll
total 112
-rwxr-x--- 1 tmn tmn 22801 Dec 29 11:30 commEnv.sh
-rwxr-x--- 1 tmn tmn 2124 Dec 29 11:30 config_builder.sh
-rwxr-x--- 1 tmn tmn 2276 Dec 29 11:30 config.sh
-rwxr-x--- 1 tmn tmn 2581 Dec 29 11:30 pack.sh
-rwxr-x--- 1 tmn tmn 2150 Dec 29 11:30 setPatchEnv.sh
-rwxr-x--- 1 tmn tmn 4084 Dec 29 11:30 startDerby.sh
-rwxr-x--- 1 tmn tmn 4090 Dec 29 11:30 startManagedWebLogic.sh
-rwxr-x--- 1 tmn tmn 1450 Dec 29 11:30 stopDerby.sh
-rwxr-x--- 1 tmn tmn 2089 Dec 29 11:30 unpack.sh
-rwxr-x--- 1 tmn tmn 3300 Dec 29 11:30 upgrade.sh
-rwxr-x--- 1 tmn tmn 31219 Dec 29 11:29 wlscontrol.sh
-rwxr-x--- 1 tmn tmn 13740 Dec 29 11:29 wlsifconfig.sh
-rwxr-x--- 1 tmn tmn 786 Dec 29 11:30 wlst.sh

9、執行 config.sh 配置腳本,創建 domain
[tmn@localhost bin]$ ./config.sh

Enter index number to select OR [Exit][Next]> Next 

Enter index number to select OR [Exit][Previous][Next]> Next 

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next 

Enter value for "Name" OR [Exit][Previous][Next]> Next 

Enter new Target Location OR [Exit][Previous][Next]> Next 

Enter option number to select OR [Exit][Previous][Next]> 2

Enter new *User password: OR [Exit][Reset][Accept]> tjyd@123 

Enter option number to select OR [Exit][Previous][Next]> 3

Enter new *Confirm user password: OR [Exit][Reset][Accept]> tjyd@123

Enter option number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> 1

Enter index number to select OR [Exit][Previous][Next]> Next

Enter option number to select OR [Exit][Previous][Next]> Next

10、啟動 domain,驗證是否安裝成功

進入創建的 domain 目錄

[tmn@localhost ~]$ cd /home/tmn/Oracle/Middleware/user_projects/domains/base_domain/bin

啟動 domain

[tmn@localhost ~]$ nohup ./startWebLogic.sh &

登錄網址 http://192.168.116.129:7001/console/login/LoginForm.jsp 驗證


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM