第六篇:weblogic之被管服務器的創建


本文通過weblogic的console控制台添加被管服務器。

1、登錄console

依次展開 環境-服務器,單擊 鎖定並編輯,右側 新建,輸入服務器名稱和服務器端口號,下一步,完成,最后 鎖定編輯

創建完成后效果:

2、啟動被管服務器

進入域主目錄下的bin目錄下,執行startManagedWebLogic.sh腳本

 ./startManagedWebLogic.sh + 被管服務器名稱 + http://ip:7001

 1 [weblogic@localhost base_domain]$ pwd
 2 /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain
 3 [weblogic@localhost base_domain]$ cd bin/
 4 [weblogic@localhost bin]$ ll
 5 total 36
 6 drwxr-x---. 2 weblogic weblogic    27 Aug 24 14:17 nodemanager
 7 drwxr-x---. 2 weblogic weblogic    28 Aug 24 14:17 server_migration
 8 drwxr-x---. 2 weblogic weblogic    24 Aug 24 14:17 service_migration
 9 -rwxr-x---. 1 weblogic weblogic 13250 Aug 24 14:17 setDomainEnv.sh
10 -rwxr-x---. 1 weblogic weblogic  3229 Aug 24 14:17 startManagedWebLogic.sh
11 -rwxr-x---. 1 weblogic weblogic  5699 Aug 24 14:17 startWebLogic.sh
12 -rwxr-x---. 1 weblogic weblogic  2450 Aug 24 14:17 stopManagedWebLogic.sh
13 -rwxr-x---. 1 weblogic weblogic  1992 Aug 24 14:17 stopWebLogic.sh
14 [weblogic@localhost bin]$ ./startManagedWebLogic.sh test1 http://192.168.78.129:7001

console控制台查看啟動狀態

3、停止被管服務器

進入域主目錄下的bin目錄下,執行stopManagedWebLogic.sh腳本

./stopManagedWebLogic.sh 被管服務器名 t3://IP:7001 用戶名 密碼 force=true # force=true表示強制停止
 1 [weblogic@localhost bin]$ ./stopManagedWebLogic.sh test1 t3://192.168.78.129:7001 weblogic 00000000 force=true
 2 Stopping Weblogic Server...
 3 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
 4 
 5 Initializing WebLogic Scripting Tool (WLST) ...
 6 
 7 Welcome to WebLogic Server Administration Scripting Shell
 8 
 9 Type help() for help on available commands
10 
11 Connecting to t3://192.168.78.129:7001 with userid weblogic ...
12 Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
13 
14 Warning: An insecure protocol was used to connect to the
15 server. To ensure on-the-wire security, the SSL port or
16 Admin port should be used instead.
17 
18 Shutting down the server test1 with force=false while connected to AdminServer ...
19 .
20 
21 Exiting WebLogic Scripting Tool.
22 
23 Done
24 Stopping Derby Server...

4、后台運行被管服務器

nohup ./startManagedWebLogic.sh test1 http://192.168.78.129:7001 &
1 [weblogic@localhost bin]$ nohup ./startManagedWebLogic.sh test1 http://192.168.78.129:7001 &
2 [1] 6264
3 [weblogic@localhost bin]$ nohup: ignoring input and appending output to ‘nohup.out’

5、免密啟動被管服務器

進入被管服務器目錄/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/test2,依test2服務器為例。

1 [weblogic@localhost test2]$ pwd
2 /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/test2
3 [weblogic@localhost test2]$ mkdir security
4 [weblogic@localhost test2]$ vim security/boot.properties
5 username=weblogic
6 password=00000000

最后執行啟動腳本。

 


免責聲明!

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



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