Administer the Liberty profile from the command prompt
To control server processes...cd wlp/bin
server <action> [server] [options]
This script supports the following actions:
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. The default port is 7777. We can use the WLP_DEBUG_ADDRESS variable to specify an alternative port. 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 files Default directory for dump files is...
To set a different default directory, use an IBM JVM and set the following environment variables:
- IBM_HEAPDUMPDIR
- IBM_COREDIR
- IBM_JAVACOREDIR
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 Get command-line script help, including details of additional options.
If a server_name is not specified on the command line, the action is performed against the default server instance, defaultServer.
Examples
server create server_name
server package server_name
server run server_name
server help server_nameTo run...
${wlp.install.dir}/bin/tools/ws-server.jar
...without using the server script...
java -javaagent:bin/tools/ws-javaagent.jar -jar bin/tools/ws-server.jar server_name --create
java -javaagent:bin/tools/ws-javaagent.jar -jar bin/tools/ws-server.jar server_name
java -javaagent:bin/tools/ws-javaagent.jar -jar bin/tools/ws-server.jar --help
Subtopics
- server command options
- featureManager command
- Generate the Liberty profile configurations schema
- Generate a Liberty profile server dump
- Package a Liberty profile server
- Start and stop a server
- Use Ant to automate tasks
- Use Maven to automate tasks
- Use an OSGi console
- Create a Liberty profile server manually
- server command options
- iAdmin command
Parent topic: Administer the Liberty profile manually