7.6 Stopping Virgo Server for Apache Tomcat
Prev | 7. Starting and Stopping Virgo Server for Apache Tomcat | Next

## 7.6 Stopping Virgo Server for Apache Tomcat

### Linux

To stop a running instance of Virgo Server for Apache Tomcat, start a new terminal window and run the `shutdown.sh` script:

    prompt$ cd $SERVER_HOME
    prompt$ bin/shutdown.sh

To stop a running instance of Virgo Server for Apache Tomcat immediately, bypassing normal shutdown processing, run `shutdown.sh` with the `-immediate` option:

    prompt$ cd $SERVER_HOME
    prompt$ bin/shutdown.sh -immediate

If, when you started the Web Server instance, you used the `-jmxport` option to specify a non-default JMX port number, then you must pass this port number to the `-jmxport` of the `shutdown.sh` script to gracefully shut it down. For example, if you specified `9090` as the JMX port, use the following to shut down the Web Server instance:

    prompt$ cd $SERVER_HOME
    prompt$ bin/shutdown.sh -jmxport 9090

### Microsoft Windows

To stop a running instance of Virgo Server for Apache Tomcat, start a new console window and run the `shutdown.bat` script:

    prompt> cd %SERVER_HOME%
    prompt> bin\shutdown.bat

To stop a running instance of Virgo Server for Apache Tomcat immediately, bypassing normal shutdown processing, run `shutdown.bat` with the `-immediate` option:

    prompt> cd %SERVER_HOME%
    prompt> bin\shutdown.bat -immediate

If, when you started the Web Server instance, you used the `-jmxport` option to specify a non-default JMX port number, then you must pass this port number to the `-jmxport` of the `shutdown.bat` script to gracefully shut it down. For example, if you specified `9090` as the JMX port, use the following to shut down the Web Server instance:

    prompt> cd %SERVER_HOME%
    prompt> bin\shutdown.bat -jmxport 9090

Prev | Up | Next
7.5 Starting with a Custom Configuration Directory | Home | 7.7 Cleaning Virgo Server for Apache Tomcat without Starting it