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

Starting the Administration Server

Administration Server is a WebLogic Server instance specific to administering a WebLogic domain through the Administration Console application at the /console URI.

It's a common task to deploy runtime applications to the Administration Server in development environments, but you should avoid doing it in production. Leave the Administration Server only to the administrative tasks of the console.

Getting ready

Since there is only one Administration Server per WebLogic domain, you have to start the Administration Server only in prod01.

How to do it...

To start the Administration Server, follow the ensuing steps:

  1. Log in as the wls user on the first machine prod01 and navigate to the folder:
    [wls@prod01]$ cd $DOMAIN_HOME/bin
    
  2. Start the Administration Server:
    [wls@prod01]$ ./startWebLogic.sh
    
  3. The server will initiate the startup process and ask for the WebLogic Administrator username and password:
    Enter username to boot WebLogic server: wlsadmin
    Enter password to boot WebLogic server:
    
  4. Type wlsadmin as the username and the <password> value you previously specified during domain creation.
  5. WebLogic Administration Server will start.

How it works...

The Administration Server is now running and waiting for connections in the host and port that are specified during domain creation at http://prod01.domain.local:7001/console.

<Started the WebLogic Server Administration Server "PROD_AdminServer" for domain "PROD_DOMAIN" running in production mode.>

There's more...

The system administrator should also create a boot.properties file to avoid entering the boot username and password in every WebLogic Server startup.

Creating the boot.properties file

Specify a boot.properties file so the Administration Server doesn't ask for the username and password at startup.

  1. Go to the Administration Server root folder:
    [wls@prod01]$ cd $DOMAIN_HOME/servers/PROD_AdminServer
    
  2. Create and enter a new directory:
    [wls@prod01]$ mkdir security
    [wls@prod01]$ cd security
    
  3. Create a new file called boot.properties with wlsadmin as the username and the <password> value you specified:
    [wls@prod01]$ echo -ne "username=wlsadmin\npassword=<password>" > boot.properties
    
    [wls@prod01]$ cat boot.properties
    username=wlsadmin
    password=<password>
    
  4. The next time you start WebLogic Administration Server, it will use the credentials from the boot.properties file. The file will also be encrypted:
    [wls@prod01]$ cat boot.properties
    password={AES}If68A2GSiO6Fa8w4j0giDJGR0FATHnfPsoZvpmF/Ipc\=
    username={AES}UYyIQYkN6z5o8PsS/IccG3VgZv6LP1zj+Ro1JBDb2ZE\=
    
Starting the Administration Server in the background

You usually start the Administration Server as a background process in Linux.

  1. Go to the WebLogic domain's bin directory:
    [wls@prod01]$ cd $DOMAIN_HOME/bin
    
  2. Start the Administration Server in the background:
    [wls@prod01]$ nohup ./startWebLogic.sh &
    [1] <PID>
    

The <PID> value is the process ID of the Administration Server.

The standard output (stdout) and standard error (stderr) of the process will be appended to a file called $DOMAIN_HOME/bin/nohup.out.

Accessing the Administration Console

The Administration Console application is running in the Administration Server. To access it, follow the ensuing steps:

  1. Open your web browser and navigate to http://prod01.domain.local:7001/console:
  2. Type the wlsadmin username and the password that was specified earlier.

See also

  • Starting the Node Manager
  • Starting/Stopping the WebLogic Managed Server
主站蜘蛛池模板: 育儿| 凤凰县| 闻喜县| 行唐县| 邻水| 宁夏| 南部县| 花莲县| 平远县| 霞浦县| 三穗县| 江山市| 平利县| 松溪县| 老河口市| 兰州市| 横峰县| 靖州| 鄂伦春自治旗| 东阳市| 治多县| 开远市| 阿瓦提县| 孝义市| 乾安县| 平顶山市| 镇坪县| 广宁县| 平果县| 东源县| 大田县| 安图县| 依安县| 织金县| 墨竹工卡县| 贵阳市| 岳阳县| 长泰县| 台中县| 仪陇县| 阜城县|