Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Portal Server 6 2005Q1 Administration Guide 

Chapter 3
Creating and Deleting Instances of the Server

An instance is a server that listens on a particular port, bound to either one or more IP addresses. For the Sun Java™ System Portal Server, an instance corresponds to a web server process listening on a port and running a single Java™ Virtual Machine (JVM™).


Note

Multiple-instances are supported with Sun Java™ System Web Server and Sun Java™ System Application Server.


To Create an Instance of the Server

  1. Log in to the server running the Portal Server.
  2. Deploy a new Access Manager instance. For instructions on deploying a new Access Manager instance, see the Chapter 1 of the Sun Java System Access Manager Administration Guide at: http://docs.sun.com/.
  3. Go to the Portal Server utilities directory.
  4. cd PortalServer-base/SUNWps/bin

  5. Run the multiserverinstance script.
  6. ./multiserverinstance

  7. Enter the name of the instance.
  8. Enter the port of the new instance.
  9. If you have portlets, redeploy them. For instructions to redeploy portlets, consult the Sun Java System Portal Server 2005Q1 Technical Reference Guide.
  10. After the multiservinstance script exits, go to the web server instance directory.
  11. cd WebServer-base/https-new-instance-name

  12. Stop the web server instance.
  13. ./stop

  14. Restart the web server instance.
  15. ./start

  16. Go to the newly created instance in a browser.
  17. Repeat steps Step 9 through Step 11 for each newly created instance.
  18. In a browser, enter:
    • http://hostname.domain:instance-portnumber/amconsole to access the administration console through the new instance
    • http://hostname.domain:instance-portnumber/portal to access the default URL for the Portal Desktop through the new instance

If you create any additional server instances and you want to run them as non-root or nobody, comment out the following lines for each instance at AccessManager-base/SUNWam/bin/amserver.instance-nickname

if [ "$uid" != "0" ];

then

  echo "‘$gettext ’You must be root user to run’‘ $0."

  exit 1

fi

To Delete an Instance of the Server

  1. Log in to the server running the Portal Server.
  2. Change directories to PortalServer-base/SUNWps/bin.
  3. cd PortalServer-base/SUNWps/bin

  4. If you have portlets, remove them. For instructions, see the Sun Java System Portal Server 2005Q1 Technical Reference Guide for more information on administering command line utilities.
  5. Enter:
  6. ./multiserverinstance delete -instance instance-name

  7. If you are also removing the Sun Java System Access Manager, uninstall the Access Manager instance. For instructions on uninstalling an Access Manager instance, see the Chapter 1 of the Sun Java System Access Manager Administration Guide at: http://docs.sun.com/.



Previous      Contents      Index      Next     


Copyright 2005 Sun Microsystems, Inc. All rights reserved.