Creating a Liberty server manually
You can create a server from the command line.
Before you begin
You can create a server as described here, or as described in Creating a Liberty server by using developer tools.
Procedure
Results
If the server is created successfully, you receive message: Server
server_name created.
If the specified server exists, no server is created and you receive an exception message:
CWWKE0005E: The runtime environment could not be launched.
CWWKE0045E: It was not possible to create the server called server_name because
the server directory C:\wlp\usr\servers\server_name already exists.
A directory with the name of the new server is created under the ${wlp.user.dir}/servers directory, containing the configuration of the new server. The HTTP port numbers for the new server are assigned to default values and are shown in the generated server.xml file to make it easy to edit them. You can also set these values by using variables in a bootstrap.properties file in the same directory. For more information, see Specifying Liberty bootstrap properties.