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.
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.
What to do next
Creating Liberty servers from custom configurations
You can create a server from a custom configuration for any environment that you require.
About this task
The Liberty server script create command offers a --template option. You can use this option to support server creation from a custom configuration located within a templates/servers/<template-name> sub-directory of your product extension. Custom server templates must contain at least a server.xml file, and can contain any configuration files, for example: bootstrap.properties or jvm.options.
Procedure
--template
option:
server create --template=<extension-name>:<template-name>