weblogic擴展受管節點

安裝jdk和配置

[root@nhtshlweb01 ~]# useradd weblogic
[root@nhtshlweb01 ~]# passwd weblogic
[root@nhtshlweb01 ~]# mkdir -p /software/bea11g
[root@nhtshlweb01 ~]# mkdir -p /software/domains
[root@nhtshlweb01 ~]# chown -R weblogic:weblogic /software  
[root@nhtshlweb01 ~]# su - weblogic
[weblogic@nhtshlweb01 ~]$ cd /software
[weblogic@nhtshlweb01 software]$ ls  然後把jdk和weblogic傳上來
jdk-6u211-linux-x64.bin  wls1036_generic.jar
[weblogic@nhtshlweb01 software]$ chmod 775 jdk-6u211-linux-x64.bin
[weblogic@nhtshlweb01 software]$ ./jdk-6u211-linux-x64.bin
[weblogic@nhtshlweb01 software]$ ls jdk1.6.0_211/
bin  COPYRIGHT  include  jre  lib  LICENSE  man  README.html  src.zip  THIRDPARTYLICENSEREADME.txt
[weblogic@nhtshlweb01 software]$ ./jdk1.6.0_211/bin/java -version
java version "1.6.0_211"
Java(TM) SE Runtime Environment (build 1.6.0_211-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.211-b11, mixed mode)

安裝weblogic中間件

[weblogic@nhtshlweb01 software]$ ./jdk1.6.0_211/bin/java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]>      回車


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default
"/home/weblogic/Oracle/Middleware"]




Enter new Middleware Home OR [Exit][Previous][Next]> /software/bea11g   輸入安裝路徑,提前創建好





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/software/bea11g]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/home/weblogic/Oracle/Middleware]




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

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]



Enter index number to select OR [Exit][Previous][Next]> 3   不接收安全更新





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]



Enter [Yes][No]? No





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? yes





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]



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

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional
    |configuration.





Enter index number to select OR [Exit][Previous][Next]>   回車,“經典安裝”

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/software/jdk1.6.0_211[x]



   *Estimated size of installation:  690.2 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>  回車,默認識別到剛纔安裝的jdk

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/software/bea11g]

Product Installation Directories:


   1|WebLogic Server: [/software/bea11g/wlserver_10.3]
   2|Oracle Coherence: [/software/bea11g/coherence_3.7]




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





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB




Enter [Exit][Previous][Next]>   回車
Dec 12, 2019 2:52:25 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...





<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


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

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...
[weblogic@nhtshlweb01 software]$

配置受管服務器domain

[weblogic@nhtshlweb01 ~]$ cd /software/bea11g/wlserver_10.3/common/bin/
[weblogic@nhtshlweb01 bin]$ ls
commEnv.sh  config_builder.sh  config.sh  pack.sh  setPatchEnv.sh  startDerby.sh  startManagedWebLogic.sh  stopDerby.sh  unpack.sh  upgrade.sh  wlscontrol.sh  wlsifconfig.sh  wlst.sh
config_builder.sh  config.sh
[weblogic@nhtshlweb01 bin]$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.





<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.

   2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and modify     |configuration settings.





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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in
    |your domain.

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This
    |could be a custom created template using the Template Builder.





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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------



    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]



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





<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |

Enter value for "Name" OR [Exit][Previous][Next]> dshljmsdomain  根據自己情況輸入域名


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |     Value     |
   _|________|_______________|
   1| *Name: | dshljmsdomain |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes




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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default
"/software/bea11g/user_projects/domains"]


Enter new Target Location OR [Exit][Previous][Next]> /software/domains


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]> 根據自己情況配置管理員用戶名和密碼

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                *********                |
   3| *Confirm user password: |                *********                |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes



Enter option number to select OR [Exit][Previous][Next]   修改好後回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode

   2|Production Mode




Enter index number to select OR [Exit][Previous][Next]> 2   選擇生產模式



<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|Sun SDK 1.6.0_211 @ /software/jdk1.6.0_211
   2|Other Java SDK



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


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [ ]     管理服務器
   2|Managed Servers, Clusters and Machines [ ]   受管服務器、集羣和計算機
   3|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]> 2  根據情況配置,由於現在我擴展受管服務器(在另一臺機器),所以選2





<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [x]
   3|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]> 回車,配置受管服務器,根據自己情況修改名字地址端口和節點數

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    | Name* | Listen address* | Listen port | SSL listen port | SSL enabled |
   _|_______|_________________|_____________|_________________|_____________|



Enter name for a new  OR [Exit][Previous][Next]> dshljmsServerD1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |    Name*     | Listen address*  |Listen port|SSL listen ...|SSL enabled|
   _|______________|__________________|___________|______________|___________|
 1->|dshljmsServ...|All Local Addre...|   7003    |     N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done




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





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |    Name*     | Listen address*  |Listen port|SSL listen ...|SSL enabled|
   _|______________|__________________|___________|______________|___________|
 1->|dshljmsServ...|All Local Addre...|   7003    |     N/A      |   false   |




Modify "Listen address" OR [Exit][Previous][Next]> 15.18.36.127





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
 1->|dshljmsServerD1| 15.18.36.127 |   7003    |      N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done




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





<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
 1->|dshljmsServerD1| 15.18.36.127 |   7003    |      N/A      |   false   |


Modify "Listen port" OR [Exit][Previous][Next]> 8001


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
 1->|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done

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

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |

Use above value or select another option:
    1 - Add
    2 - Modify
    3 - Delete
    4 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 1  
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |


Enter name for a new  OR [Exit][Previous][Next]> dshljmsServerD2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |    Name*     | Listen address*  |Listen port|SSL listen ...|SSL enabled|
   _|______________|__________________|___________|______________|___________|
   1|dshljmsServ...|  15.18.36.127   |   8001    |     N/A      |   false   |
 2->|dshljmsServ...|All Local Addre...|   7003    |     N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done


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



<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |    Name*     | Listen address*  |Listen port|SSL listen ...|SSL enabled|
   _|______________|__________________|___________|______________|___________|
   1|dshljmsServ...|  15.18.36.127   |   8001    |     N/A      |   false   |
 2->|dshljmsServ...|All Local Addre...|   7003    |     N/A      |   false   |



Modify "Listen address" OR [Exit][Previous][Next]> 150.18.36.227


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |
 2->|dshljmsServerD2| 15.18.36.127 |   7003    |      N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done


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


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |
 2->|dshljmsServerD2| 15.18.36.127 |   7003    |      N/A      |   false   |


Modify "Listen port" OR [Exit][Previous][Next]> 8002


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |
 2->|dshljmsServerD2| 15.18.36.127 |   8002    |      N/A      |   false   |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"
    5 - Done

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


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.

    |     Name*     |Listen address*|Listen port|SSL listen port|SSL enabled|
   _|_______________|_______________|___________|_______________|___________|
   1|dshljmsServerD1| 15.18.36.127 |   8001    |      N/A      |   false   |
 2->|dshljmsServerD2| 15.18.36.127 |   8002    |      N/A      |   false   |

Use above value or select another option:
    1 - Add
    2 - Modify
    3 - Delete
    4 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]>  回車
<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Clusters:
-------------------

Add or delete configuration information for clusters. A cluster consists of
multiple server instances working together to provide increased scalability
and reliability.

    |Name*|Cluster messaging...|Multicast add...|Multicast ...|Cluster add...|
   _|_____|____________________|________________|_____________|______________|

Use above value or select another option:
    1 - Add Cluster
    2 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]> 如無需配置集羣的直接回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Machines:
-------------------

Add or delete machines. A machine hosts one or more WebLogic Server
instances. The Admin Server and Node Manager use this machine definition to
start remote servers.

    | Name* | Node manager listen address | Node manager listen port |
   _|_______|_____________________________|__________________________|


Enter name for a new Machine OR [Exit][Previous][Next]> 回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Unix Machines:
------------------------

Add or delete machines. A machine hosts one or more WebLogic Server
instances. The Admin Server and Node Manager use this machine definition to
start remote servers.

    | Name |
   _|______|


Enter name for a new Unix Machine OR [Exit][Previous][Next]> 回車
<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****


[weblogic@nhtshlweb01 bin]$

修改啓動參數

[weblogic@nhtshlsjfh01 ~]$ cd /software/domains/dshljmsdomain/bin
[weblogic@nhtshlweb01 bin]$ cp setDomainEnv.sh setDomainEnv.sh.bk
[weblogic@nhtshlweb01 bin]$ vim setDomainEnv.sh
[weblogic@nhtshlsjfh01 dshljmsdomain]$ vim setDomainEnv.sh  根據自己情況修改
......
#增加下面2啓動參數
if [ "${SERVER_NAME}" = "dshljmsServerD1" ]; then
        WLS_MEM_ARGS_64BIT="-Xms2048m -Xmx2048m -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:./servers/$SERVER_NAME/logs/$SERVER_NAME.gc.$$.log -XX:+HeapDumpOnOutOfMemoryError"
        export WLS_MEM_ARGS_64BIT
fi

if [ "${SERVER_NAME}" = "dshljmsServerD2" ]; then
        WLS_MEM_ARGS_64BIT="-Xms2048m -Xmx2048m -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:./servers/$SERVER_NAME/logs/$SERVER_NAME.gc.$$.log -XX:+HeapDumpOnOutOfMemoryError"
        export WLS_MEM_ARGS_64BIT
fi

MEM_ARGS_64BIT="${WLS_MEM_ARGS_64BIT}"
export MEM_ARGS_64BIT

MEM_ARGS_32BIT="${WLS_MEM_ARGS_32BIT}"
export MEM_ARGS_32BIT

......

#修改大點
MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=1024m"   
export MEM_MAX_PERM_SIZE_64BIT
......

JAVA_OPTIONS="-Dweblogic.threadpool.MinPoolSize=100 ${JAVA_OPTIONS}"
export JAVA_OPTIONS

#加上下面2,一個jdk的bug,一個weblogic的bug
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
export JAVA_OPTIONS

JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.data.canTransferAnyFile=true"
export JAVA_OPTIONS

 

[weblogic@nhtshlweb01 dshljmsdomain]$ cat start_dshljmsServerD1.sh
nohup ./bin/startManagedWebLogic.sh dshljmsServerD1 t3://150.18.36.228:8000 >> ./nohup.dshljmsServerD1 2>&1 &
[weblogic@nhtshlweb01 dshljmsdomain]$ cat start_dshljmsServerD2.sh
nohup ./bin/startManagedWebLogic.sh dshljmsServerD2 t3://150.18.36.228:8000 >> ./nohup.dshljmsServerD2 2>&1 &
[weblogic@nhtshlweb01 dshljmsdomain]$ cat fb.sh
#!/bin/sh

whoami | grep weblogic
if [ $? != 0 ];then
	echo "must use weblogic to start"
	exit
fi

cd /software/domains/dshljmsdomain
echo "kill dshljmsServer"

ps -ef|grep =dshljmsServer |grep -v grep|awk '{print $2}'|xargs kill -9

sleep 3

echo "clean tmp"
rm -rf /software/domains/dshljmsdomain/servers/dshljmsServerD1/tmp/*
rm -rf /software/domains/dshljmsdomain/servers/dshljmsServerD2/tmp/*

sleep 3

echo "start dshljmsServer"
./start_dshljmsServerD1.sh
./start_dshljmsServerD2.sh

[weblogic@nhtshlweb01 dshljmsdomain]$ ./start_dshljmsServerD1.sh
[weblogic@nhtshlweb01 dshljmsdomain]$ ./start_dshljmsServerD2.sh
[weblogic@nhtshlweb01 dshljmsdomain]$ tail -f nohup.dshljmsServerD1
	at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
	at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:881)
	at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)
	at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
	at weblogic.Server.main(Server.java:71)

>
<Dec 12, 2019 4:23:32 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 12, 2019 4:23:32 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 12, 2019 4:23:32 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

看到上面直接啓動後報錯,需要進行下面的配置後,重新啓動即可

在管理控制檯加上新增的受管節點:
登錄控制檯->"鎖定並編輯"->"環境"->"服務器"->"新建"->分別輸入剛纔新建的2個受管節點的名稱、監聽地址、監聽端口->"完成"->激活更改->"釋放配置"
在下面路徑創建boot.properties:
/software/domains/dshljmsdomain/servers/dshljmsServerD1/security/boot.properties
/software/domains/dshljmsdomain/servers/dshljmsServerD2/security/boot.properties
內容如下:
password=管理控制檯的密碼
username=管理控制檯的賬號

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章