WAS v8.5 > Administer applications and their environment > Administer the Liberty profile > Administer the Liberty profile manually

Administer the Liberty profile from the command prompt

Use the server and ws-launch.jar commands to...

The wlp/bin directory contains a script called server to help with controlling the server process. Syntax...

For example...

For available values of the options, see Liberty profile: server command options.

The server script supports the following tasks:

create Create a new server.
run Launch the server in the foreground.
debug Run the named server in the console foreground after a debugger connects to the debug port. Default port: 7777
dump Create a snapshot of a server and save the result into an archive file
javadump Create a snapshot of the server JVM and save the result into ${server.output.dir}
package Package a server.
start Launch the server as a background process.
stop Stop a running server.
status Check to see whether a specified server is running.
version Display the version information of current server and Java runtime environment.
help Command-line script help, including details of additional options.

If a server is not specified on the command line, the task is performed against the default server instance, defaultServer, if it exists.

We can also carry out similar tasks using the executable JAR file ws-launch.jar in the wlp/lib directory.


See also

  1. Liberty profile: server command options
  2. Use Ant to automate tasks for the Liberty profile
  3. Use Maven to automate tasks for the Liberty profile
  4. Use an OSGi console


Example

To run the server script on Windows systems:

To run the server script on other systems:

To run the executable JAR file ws-launch.jar without using the server script:

The --help option provides information about additional command-line parameters for the executable JAR file ws-launch.jar , such as --stop, --version, --clean, --include.


Parent topic: Administer the Liberty profile manually


Related


Create a Liberty profile server manually
Packaging a Liberty profile server
Use Ant to automate tasks for the Liberty profile