9 1:Starting and Stopping-Linux

From Pnet-Community

Jump to: navigation, search

Contents

[edit] Starting and Stopping Project.net and Oracle

[edit] To start and stop Apache Tomcat and Project.net

There are two method of starting or stopping Apache Tomcat, they are listed in order of preference.

  • When running, Tomcat should be running as user tomcat, rather than root.
  • Note, when starting Tomcat it will take several minutes before the Project.net login screen is available.
  • If, for some reason, Project.net does not start, check the most current Tomcat log files in /<TOMCAT_HOME>/logs. The most recent entry in each file is located at the bottom.

[edit] Preferred Method to manually start/stop Tomcat application server

  1. Open a terminal window to the application server (and log in as a user with sudo capabilities).
  2. Look in /etc/init.d for a service (file) beginning with "tomcat", this name is the one to use in the following commands.
  3. sudo /sbin/service <tomcat service name> [start | stop]
  4. You can confirm that the application has stopped by trying to reach the Project.net login screen; you should get a page-not-found style of message.

[edit] Alternate method to manually start/stop Tomcat application server

  1. Open a terminal window to the application server (and log in as a user with sudo capabilities).
  2. cd CATALINA_HOME/bin/
  3. sh catalina.sh -[start | stop | restart]
  4. You can confirm that the application has stopped by trying to reach the Project.net login screen; you should get a page-not-found style of message.

[edit] To start and stop Oracle

Use the following two scripts (startup.sh & shutdown.sh) to manually start or stop the database services. Follow the instructions to switch to the user Oracle before executing the scripts. You can find the scripts under (/home/oracle).

[edit] To manually start database service

  1. If you are not already logged in, open a terminal window to the application server and do so. Make sure your account has sudo capabilities.
  2. Make sure Tomcat is stopped and the Project.net application is not running (see above).
  3. su - oracle
  4. sh /home/oracle/startup.sh
  5. exit

Note: Log file is in: /home/oracle/oracle/product/10.2.0/network/log/pnet.log

[edit] To manually stop database service

  1. If you are not already logged in, open a terminal window to the application server and do so. Make sure your account has sudo capabilities.
  2. su - oracle
  3. sh /home/oracle/shutdown.sh
  4. exit

[edit] More Help

Personal tools