Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System 2005Q1 Installation Guide 

Chapter 11
Starting and Stopping Components

This chapter provides instructions for starting and stopping Sun Java™ Enterprise System (Java ES) components that have been installed and configured. You can use the procedures in this section to verify that components are operational.

This chapter includes the following sections:


Prerequisite

Before using the procedures in this chapter, you should have completed all the postinstallation configuration tasks specified in Chapter 10, "Configuring Components After Installation".


Startup Sequence for Java ES Components

To start Java ES, you start the components one after another, in a specific sequence. You start with the basic services provided by Directory Server and your web container (Web Server or an application server). Java ES creates runnable instances of these services during installation. Since Portal Server and Access Manager run inside the web container, they start when you start the web container.

The general sequence for bringing up the entire Java ES component set is shown in the following table. The left column lists the order in which you should perform the startup, the middle column describes the task, and the right column lists the location of the instructions for performing the task.

Table 11-1  Preferred Startup Sequence for Java ES 

Order

Task

Location of Instructions

1

Start your directory server.

 

A. Start Directory Server.

To Start Directory Server

B. Start Administration Server.

To Start Administration Server

C. Start Server Console.

To Start Server Console

2

Start your chosen web container. If installed, Access Manager and Portal Server are started. If installed and configured, Communications Express is also started.

 

Start Application Server (also starts Message Queue).

To Start Application Server Instance

Start Web Server.

To Start Web Server Administration Server and Instance

Start IBM WebSphere Server.

See the third-party documentation for the server.

Start BEA Weblogic Server.

See the third-party documentation for the server.

3

Start Access Manager

To Start Access Manager

4

Start Portal Server Secure Remote Access.

To Start Portal Server Secure Remote Access Gateway

5

Start Instant Messaging.

To Start Instant Messaging Server and Multiplexor

6

Start Messaging Server.

To Start Messaging Server

7

Start Calendar Server.

To Start Calendar Server

8

Start Directory Proxy Server.

To Start Directory Proxy Server

To shut down the entire Java ES component set, reverse the sequence.

The default installation locations of Java ES components are different on the Solaris operating system and the Linux operating system. Due to this difference, the procedures in this chapter use placeholders to represent these locations. For example, AccessManager-base represents the base installation directory for Access Manager.


Tip

In most cases, the examples in the following sections are based on default information. If you do not remember the installation or configuration values specified for your component, try the example.



Starting and Stopping Access Manager

The Access Manager startup and shutdown mechanisms are part of the startup and shutdown mechanisms for the web container on which it runs. It also depends on Directory Server. See the following sections to start your Sun web container and Access Manager after installation and configuration:

The following procedures refer to the amserver command which can be used to start and stop Access Manager when the web container is already running.

    To Start Access Manager
  1. Verify that your web container is running.
  2. On the command line, change to the AccessManager-base/bin directory.
  3. Enter the following command to start Access Manager.
  4. ./amserver start

  5. Verify that the Access Manager processes are running. For example:
  6. Solaris: /usr/bin/ps -ef | grep SUNWam
    Linux: /bin/ps -ef | grep identity

    The return would be:

    Solaris: /opt/SUNWam/share/bin/amunixd -c 58946
    Linux: /opt/sun/identity/share/bin/amunixd -c 58946

    To Access the Access Manager Login Page
  1. Use the following URL to access the default page:
  2. http://web_container-host:port/amconsole

    The Access Manager login page appears.

  3. Log in.
  4. A successful login to Access Manager confirms successful deployment of the software. The default administrator account is amadmin.

    To Stop Access Manager
  1. Verify that your web container is running.
  2. On the command line, change to the AccessManager-base/bin directory.
  3. Enter the following command to stop the Access Manager processes.
  4. ./amserver stop

  5. Verify that the Access Manager processes are not running with the commands listed in Step 4 above.


Starting and Stopping Administration Server and the Server Console

Included here are instructions for starting and stopping Administration Server and the Server Console. For more information, see “Starting and Stopping Administration Server” in the Sun Java System Administration Server Administration Guide (http://docs.sun.com/doc/817-7612). Administration Server depends on Directory Server.

    To Start Administration Server
  1. Enter the following:
  2. On Solaris: /usr/sbin/mpsadmserver start
    On non-Solaris: Change to the server root directory and enter ./start-admin

  3. Verify that the Administration Server processes are running. For example:
  4. /usr/bin/ps -ef | grep admin-serv/config

    ./uxwdog -e -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    To Start Server Console
  1. If necessary, configure the $DISPLAY variable to display the Server Console on your host.
  2. Verify that the Administration Server processes are running. For example:
  3. /usr/bin/ps -ef | grep admin-serv/config

    ./uxwdog -e -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

    ns-httpd -d /var/opt/mps/serverroot/admin-serv/config

  4. Enter the following:
  5. On Solaris: /usr/sbin/mpsadmserver startconsole
    On non-Solaris: Change to the server root directory and enter startconsole

  6. Verify that the Server Console process is running. For example:
  7. /usr/bin/ps -ef | grep console

    /usr/lib/saf/ttymon -g -h -p mycomputer console login: -T sun -d /dev/console -1

    To Stop Server Console
  1. To stop Server Console, exit the graphical interface.
  2. Verify that Server Console is no longer running. For example:
  3. /usr/bin/ps -ef | grep console

    To Stop Administration Server
  1. Enter the following:
  2. On Solaris: /usr/sbin/mpsadmserver stop
    On non-Solaris: Change to the server root directory and enter ./stop-admin

  3. Verify that Administration Server is no longer running. For example:
  4. /usr/bin/ps -ef | grep admin-serv/config


Starting and Stopping Application Server

Application Server is configured as a domain. The installer creates the default administrative domain with the default port number 4849. In order to use this Application Server instance, you need to start the instance, and then the graphical Admin Console for administration purposes. More information can be found in the “Getting Started” chapter of the Sun Java System Application Server Enterprise Edition Administration Guide (http://docs.sun.com/doc/819-0215). (Starting Application Server also starts Message Queue.)

    To Start Application Server Instance
  1. On the command line, change to ApplicationServer-base/bin and enter:
  2. % asadmin start-domain --user admin-id --passwordfile path_to_admin-password_file domain-name

    Enter the values that you provided during installation. A message is displayed telling you that the server is starting:

    Starting Domain domain1, please wait. Log redirected to install_dir...

    When the startup process has completed, an additional message is displayed:

    Domain domain1 started

  3. Verify that the Application Server processes are running. For example:
  4. /usr/bin/ps -ef | grep appservd

    ./appservd-wdog -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/a

    appservd -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/admin-se

    appservd -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/admin-se

    /SUNWappserver/lib/Cgistub -f /tmp/admin-server-4f378e6f/.cgistub_4816

    /SUNWappserver/lib/Cgistub -f /tmp/admin-server-4f378e6f/.cgistub_4816

    /SUNWappserver/lib/Cgistub -f /tmp/admin-server-4f378e6f/.cgistub_4816

    ./appservd-wdog -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/s

    appservd -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/server/

    appservd -r /SUNWappserver -d /var/opt/SUNWappserver/domains/domain1/server/

    To Access the Admin Console

To access the Admin Console, use the following URL format in your browser: https://localhost:port

If the Admin Console is running on the host on which the Application Server was installed, specify localhost for the host name. Replace localhost with the name of the system that the Application Server software is running on if the browser is on another system. Replace the port variable with the Admin port number assigned during installation. The default port number assigned during installation is 4849. For example:

https://mycomputer.example.com:4849

You should see the Admin Console Login screen.


Note

More information on installing the Application Server, the Domain Administration Server, and its various port numbers and concepts can be found in the Sun Java System Applications Server Enterprise Edition Installation Guide (http://docs.sun.com/doc/819-0218).


    To Stop Application Server
  1. On the command line, change to ApplicationServer-base/bin.
  2. Enter the following command to stop the Application Server instances.
  3. ./asadmin stop-domain --domain domain1

  4. Verify that Application Server is no longer running. For example:
  5. /usr/bin/ps -ef | grep appservd


Starting and Stopping Calendar Server

Calendar Server depends on Directory Server.

    To Start Calendar Server
  1. Change to the sbin directory.
  2. On Solaris: /opt/SUNWics5/cal/sbin
    On Linux: /opt/sun/calendar/cal/sbin

  3. Enter the following command to start Calendar Server.
  4. ./start-cal

  5. Verify that the Calendar Server processes are running. For example:
  6. /usr/bin/ps -ef | grep cal

    /opt/SUNWics5/cal/lib/cshttpd -d 3

    /opt/SUNWics5/cal/lib/enpd -p 57997 -c config/ics.conf

    /opt/SUNWics5/cal/lib/csadmind

    /opt/SUNWics5/cal/lib/csnotifyd

    To Access the Calendar Server Graphical Interface

If you are already provisioned in the LDAP directory that Calendar Server points to, you can log into Calendar Server. In your browser, use the http://hostname.domain[:port] format to access Calendar Server. For example:

http://mycomputer.example.com:89

At initial login, Calendar Server creates a default calendar for you. Your login to Calendar Server confirms successful installation.

    To Stop Calendar Server
  1. Change to the sbin directory.
  2. On Solaris: /opt/SUNWics5/cal/sbin
    On Linux: /opt/sun/calendar/cal/sbin

  3. Enter the following command to stop Calendar Server.
  4. ./stop-cal

  5. Verify that Calendar Server is no longer running. For example:
  6. /usr/bin/ps -ef | grep cal


Starting and Stopping Communications Express

Communications Express is a web-based communications client that comprises an address book, a mail client and a calendar. It is accessed by typing the following URL into the Location window of a web browser:

http://WebContainer-host:WebContainer-port/URI path

where


Starting and Stopping Directory Proxy Server

For all UNIX-type systems, log in as root if the server runs on ports less than 1024. On ports greater than 1024, log in either as root or using the server’s administrator account. Directory Proxy Server depends on Administration Server.

    To Start Directory Proxy Server
  1. Change to DirectoryProxyServer-base/dps-instance-name where instance-name is usually the host name. For example, the default is:
  2. cd /var/opt/mps/serverroot/dps-host1

  3. Enter the following command to start the Directory Proxy Server process.
  4. ./start-dps

  5. Verify that the Directory Proxy Server process is running. For example:
  6. /usr/bin/ps -ef | grep dps

    ./ldapfwd -t /var/opt/mps/serverroot/dps-or03/etc/tailor.txt

    To Stop Directory Proxy Server
  1. Change to DirectoryProxyServer-base/dps-instance-name where instance-name is usually the host name. For example, the default is:
  2. cd /var/opt/mps/serverroot/dps-host1

  3. Enter the following command to stop the Directory Proxy Server process.
  4. ./stop-dps

  5. Verify that Directory Proxy Server is no longer running. For example:
  6. /usr/bin/ps -ef | grep dps


Starting and Stopping Directory Server

If Directory Server is part of a cluster, ensure that you are working on the active node for the logical host. Directory Server has no dependencies.

    To Start Directory Server
  1. Start Directory Server using one of the following commands:
    • If Directory Server 5.2 is the default version:
    • On Solaris: /usr/sbin/directoryserver start
      On Linux: /opt/sun/sbin/directoryserver start

    • If Directory Server 5.2 is not the default version:
    • On Solaris: /usr/sbin/directoryserver -useversion 5.2 start
      On Linux: /opt/sun/sbin/directoryserver -useversion 5.2 start

  2. Verify that the Directory Server process is running. For example:
  3. /usr/bin/ps -ef | grep slapd

    ./ns-slapd -D /var/opt/mps/serverroot/slapd-host1 -i /var/opt/mps/serverroot/slapd-host1

    To Stop Directory Server
  1. Stop Directory Server using one of the following commands:
    • If Directory Server 5.2 is the default version:
    • On Solaris: /usr/sbin/directoryserver stop
      On Linux: /opt/sun/sbin/directoryserver stop

    • If Directory Server 5.2 is not the default version:
    • On Solaris: /usr/sbin/directoryserver -useversion 5.2 stop
      On Linux: /opt/sun/sbin/directoryserver -useversion 5.2 stop

  2. Verify that Directory Server is no longer running. For example:
  3. /usr/bin/ps -ef | grep slapd


Starting and Stopping Instant Messaging Server and Multiplexor

Starting the Instant Messaging server enables Sun Java System Instant Messenger clients to connect to it. Stopping the Instant Messaging server closes all connections and disconnects all clients. The configuration of a given instance specifies whether only the multiplexor, only the server or both these components are enabled. Instant Messaging depends on Directory Server and Web Server.


Note

For information on starting the Instant Messaging client (and the server on the Windows operating system), refer to the Sun Java System Instant Messaging Administration Guide (http://docs.sun.com/doc/819-0430).


    To Start Instant Messaging Server and Multiplexor
  1. Change to the InstantMessaging-base/sbin/ directory. For example:
  2. On Solaris: cd /opt/SUNWiim/sbin
    On Linux: cd /opt/sun/im/sbin

  3. Enter the following command to start the Instant Messaging Server and Multiplexor process:
  4. ./imadmin start

  5. Verify that the Instant Messaging processes are running:
  6. ./imadmin check

    /../lib/multiplexor -c ./../config/iim.conf

    ...

    /usr/j2se/bin/java -server -Xmx256m -cp \      ./../classes/imserv.jar:./../classes/im

    To Stop Instant Messaging
  1. Change to the InstantMessaging-base/sbin/ directory. For example:
  2. On Solaris: cd /opt/SUNWiim/sbin
    On Linux: cd /opt/sun/im/sbin

  3. Enter the following command to stop the Instant Messaging Server and Multiplexor process:
  4. ./imadmin stop

  5. Verify that the Instant Messaging processes are not running:
  6. ./imadmin check


Starting Message Queue

The heart of the Message Queue service is the Message Server. The Message Server performs message routing and delivery services via one or more brokers. The imqbrokerd command starts a broker.

    To Start Message Queue Message Server Broker
  1. Change to the MessageQueue-base/bin directory.
  2. Enter the following command to start the Message Queue Message Server broker:
  3. ./imqbrokerd

  4. Verify that the broker process is running. For example:
  5. On Solaris: /usr/bin/ps -ef | grep imqbrokerd

    /bin/sh /usr/bin/imqbrokerd

    On Linux: /bin/ps -ef | grep imqbrokerd

    /bin/sh ./imqbrokerd


Starting and Stopping Messaging Server

The Messaging Server start-msg utility starts all of the messaging server processes, or optionally, one specified service. The services started can be controlled by enabling or disabling the configuration parameters. Messaging Server depends on Directory Server and Administration Server.

    To Start Messaging Server
  1. Change to the MessagingServer-base/sbin directory.
  2. Enter the following command to start the Messaging Server:
  3. ./start-msg

  4. Verify that the Messaging Server processes are running. For example.
  5. /usr/bin/ps -ef | grep SUNWmsgsr

    Note that the list of processes varies according to the Messaging Server features you have configured to use.

    /opt/SUNWmsgsr/lib/enpd

    /opt/SUNWmsgsr/lib/stored -d

    /opt/SUNWmsgsr/lib/popd -d 5

    /opt/SUNWmsgsr/lib/imapd -d 5 -D 6

    /opt/SUNWmsgsr/lib/mshttpd -d 5 -D 6

    /opt/SUNWmsgsr/lib/dispatcher

    /opt/SUNWmsgsr/lib/job_controller

    /opt/SUNWmsgsr/lib/tcp_lmtp_server

    /opt/SUNWmsgsr/lib/tcp_smtp_server

    /opt/SUNWmsgsr/lib/tcp_smtp_server

    /opt/SUNWmsgsr/lib/imsched

    /opt/SUNWmsgsr/lib/watcher

    To Stop Messaging Server
  1. Change to the MessagingServer-base/sbin directory.
  2. Enter the following command to stop the Messaging Server:
  3. ./stop-msg

  4. Verify that the Messaging Server processes are not running. For example.
  5. /usr/bin/ps -ef | grep SUNWmsgsr

    Some Messaging Server processes might take several minutes to stop because they wait for their current transactions to complete.

    To Access Messenger Express

Messenger Express is a web-based electronic mail program that enables end users to access their mailboxes using a browser. If you are already provisioned in the LDAP directory to which Messaging Server points, you can log in using your browser. Use the http://hostname.domain[:port] format to access Messenger Express. For example:

http://mycomputer.example.com:80

If the LDAP directory is not yet provisioned you can login as admin, specifying the password you entered during configuration.


Accessing the Portal Server Desktop

The Portal Server startup and shutdown mechanisms are part of the startup and shutdown mechanisms for the web container on which it runs (Sun Java Systems or third-party). It also depends on Directory Server, Access Manager and the Access Manager SDK. See the following sections to start your Sun web container, Access Manager, and Portal Server after installation and configuration:

Portal Server administration is managed using the Access Manager Administration Console. See To Access the Access Manager Login Page to open the Access Manager Administration Console.

The following procedures pertain to accessing the end-user Portal Server Desktop.

    To Access the Portal Server Desktop from a Sun Web Container

In a browser window, use the following URL to display the sample Desktop:

http://server:port/portal

Display of the sample Desktop confirms successful deployment of Portal Server.

For a mobile device, use the following URL:

http://server:port/portal/dt

    To Access the Portal Server Desktop from BEA WebLogic

In a new browser, use the following URL to display the sample Desktop:

http://beaweblogic-host:port/portal

Display of the sample Desktop confirms successful deployment of Portal Server on BEA WebLogic.

    To Access the Portal Server Desktop from IBM WebSphere

In a new browser, use the following URL to display the sample Desktop:

http://ibmwebsphere-host:port/portal

Display of the sample Desktop confirms successful deployment of Portal Server on IBM WebSphere.


Starting and Stopping Portal Server Secure Remote Access

The Secure Remote Access components of Portal Server offers browser-based secure remote access to portal content and services from any remote device with a Java™ technology-enabled browser. The Gateway component presents the content securely from internal web servers and application servers through a single interface to a remote user. Portal Server Secure Remote Access depends on Portal Server and Access Manager or the Access Manager SDK.

    To Start Portal Server Secure Remote Access Gateway
  1. After installing the Gateway component and creating the required profile, run the following command to start the Gateway:
  2. /gateway-install-root/SUNWps/bin/gateway -n default start

    default is the default gateway profile created during installation. You can create your own profiles later, and restart the Gateway with the new profile.

  3. Run the following command to check if the Gateway is running on the specified port:
  4. netstat -a | grep port-number

    The default Gateway port is 443.

    To Stop Portal Server Secure Remote Access
  1. Use the following command to stop the Gateway:
  2. /gateway-install-root/SUNWps/bin/gateway stop

    This command stops all the Gateway instances that are running on that particular host.

  3. Run the following command to check that the Gateway processes are no longer running:
  4. /usr/bin/ps -ef | entsys


Stopping and Rebooting Sun Cluster Software

Although Sun Cluster software is not started and stopped like other components, the software can be stopped by rebooting into noncluster mode. For instructions, refer to the Sun Cluster System Administration Guide for Solaris OS (http://docs.sun.com/doc/817-6546).


Starting and Stopping Sun Remote Services Net Connect

When you activate SunSM Remote Services (SRS) Net Connect, it starts automatically within three minutes. After 30 minutes, you can begin retrieving reports.

You can verify that SRS Net Connect is functioning properly by following the instructions in “Testing the Installation” in Chapter 2 of the Sun Remote Services Net Connect 3.1.1 Activation Guide, (http://docs.sun.com/doc/819-0619).


Starting and Stopping Web Server

When you install Web Server, two server instances are installed by default: an Administration Server instance and a Web Server instance. Web Server has no dependencies.

    To Start Web Server Administration Server and Instance
  1. On the command line, change to WebServer-base/https-admserv.
  2. Enter the following command to start the Web Server administration process.
  3. ./start

  4. Change to WebServer-base/https-hostname.domain.
  5. Enter the following command to start the Web Server instance.
  6. ./start

  7. Verify that the Web Server processes are running. For example:
  8. /usr/bin/ps -ef | grep SUNWwbsvr

    ./webservd-wdog -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-admserv/config -n http

    ./webservd-wdog -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-host1.example.com

    webservd -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-admserv/config -n https-admserv

    webservd -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-admserv/config -n https-admserv

    webservd -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-host1.example.com/config

    webservd -r /opt/SUNWwbsvr -d /opt/SUNWwbsvr/https-host1.example.com/config

    To Access the Administration Server Graphical Interface

Use the http://hostname.domain:adminport format to access the Administration Server graphical interface. For example:

http://host1.example.com:8888

Your login confirms successful installation.

    To Stop Web Server Administration Server and Instance
  1. On the command line, change to WebServer-base/https-admserv.
  2. Enter the following command to stop the Web Server administration process.
  3. ./stop

  4. Change to WebServer-base/https-hostname.domain.
  5. Enter the following command to stop the Web Server instance.
  6. ./stop

  7. Verify that the Web Server processes are no longer running. For example:
  8. ps -ef | grep SUNWwbsvr


Next Steps

If you have completed this chapter, you have verified that the Java ES components that you installed and configured are functional. You can now begin administering the components. The following documentation can help you get started:



Previous      Contents      Index      Next     


Part No: 819-0056-11.   Copyright 2005 Sun Microsystems, Inc. All rights reserved.