Server command-line interface
The server command-line interface (CLI) provides a low level interface to run the server process. It can be used by higher level tools like the administrative CLI or by the user directly.
Use the server CLI to start nevisMeta without involvement of other system components like for example systemd.
You find the script at /opt/nevismeta/bin/nevismeta-server.It provides the next command line options:
Command line argument | Remarks | Default |
---|---|---|
-c, --config PATH | Required. Path to the configuration file nevismeta.properties. | No default |
-n, --name NAME | Unique name for that Nevis component node.Overrides the value of the property server.name (in the nevismeta.properties file). | See the server.name property in the nevismeta.properties file. |
-p, --port PORT | The HTTP/S port to listen on. TLS must be configured in the config file and not as an argument.Overrides the value of the property server.port (in the nevismeta.properties file). | See the server.port property in the nevismeta.properties file. |
-H, --host HOST | The HTTP/S host to bind on. By default binds on all IPv4 and IPv6 interfaces.Overrides the value of the property server.host (in the nevismeta.properties file). | See the server.host property in the nevismeta.properties file. |
--log-config PATH | Log configuration file to be used.If a log configuration is provided, nevisMeta will use the given configuration file to determine how logging should behave. If no configuration file is provided, nevisMeta will log to the console by default. | Not set |
-V, --version | Display version and exit with status code 0. | |
-h, --help | Show complete and detailed usage and exit with status code 0. |
Server CLI - command line arguments
Command-line arguments always prevail over the configuration in the nevismeta.properties file!
Example usage of the standalone CLI
To start an existing nevisMeta instance named "nevismeta" without using systemd to manage the service, set the following commands:
# set working directory
cd /var/opt/nevismeta/nevismeta
/opt/nevismeta/bin/nevismeta-server --config
/var/opt/nevismeta/nevismeta/conf/nevismeta.properties --log-config
/var/opt/nevismeta/nevismeta/conf/log4j.xml