官术网_书友最值得收藏!

Starting the Node Manager

The Node Manager is the WebLogic Server utility to control the lifecycle—start, stop, restart—of the WebLogic Managed Server instances and the Administration Server.

In production environments, the Node Manager is needed to meet the high availability requirements.

In this recipe, the system administrator will learn how to start and stop the Node Manager.

Getting ready

The Node Manager is already installed with WebLogic Server 12c. There are two versions of the Node Manager: a Java version and a script version. This recipe will cover the Java version. The Java version is the most commonly used version, and it is more complete and more secure than the script version.

How to do it...

  1. Log in as a wls user on the first machine prod01 and navigate to the folder:
    [wls@prod01]$ cd $WL_HOME/server/bin
    
  2. Start the Node Manager in the background. Since it's the first time you are starting it, the $WL_HOME/common/nodemanager/nodemanager.properties file will be created.
    [wls@prod01]$ nohup ./startNodeManager.sh &
    [1] <PID>
    nohup: appending output to `nohup.out'
    
  3. Do the same on the prod02 machine and on all the machines of the WebLogic domain.

How it works...

You can leave the default values created for nodemanager.properties.

The Node Manager has started and is listening to port 5556. The <PID> value is the number of the newly created process.

Since the prod01 and prod02 machines were configured when you created the WebLogic domain PROD_DOMAIN, the Node Manager should be reachable and able to receive start and stop commands from the Administration Console.

There's more...

In this section, we will see how to shut down the Node Manager:

Shutting down the Node Manager

There is no formal command to shut down the Node Manager, so you'll have to do it manually, killing the process:

  1. Find the <PID>value of the Node Manager process:
    [wls@prod01]$ ps aux | grep weblogic.NodeManager | grep -v grep | awk '{print $2} '
    <PID>
    
  2. Issue a kill command to PID to finish it:
    [wls@prod01]$ kill <PID>
    

    Or, force the process to finish:

    [wls@prod01]$ kill -9 <PID>
    

See also

  • Starting the Administration Server
  • Starting/Stopping the WebLogic Managed Server
主站蜘蛛池模板: 仁布县| 大丰市| 布尔津县| 万载县| 景宁| 蒲江县| 长治市| 洛南县| 河间市| 建宁县| 镇平县| 东至县| 从化市| 富民县| 江孜县| 海原县| 皮山县| 陇川县| 吉木萨尔县| 清丰县| SHOW| 乌鲁木齐县| 沙湾县| 获嘉县| 鹿泉市| 山阳县| 连云港市| 岫岩| 河北省| 南通市| 隆安县| 新津县| 横山县| 图木舒克市| 承德市| 奈曼旗| 北京市| 丽江市| 颍上县| 故城县| 平顶山市|