Starting and Stopping the Doris Service (Using Command Line and Service Management Tools)

Doris is an open-source columnar database designed for high-performance data storage and processing. When using Doris, it is important to understand how to start, stop, and manage the service.

Command Line Method

To start the Doris service using the command line, you can use the following command:

./doris-server -c /path/to/doris/config.yaml
  • The -c option is used to specify the path to the configuration file.

You can check if the service is running normally by monitoring the logs:

tail -f doris.log

Service Management Tool

Doris provides a client tool named doris-cli that can be used to manage the Doris service. The following commands can be used to start, stop, and check the status:

# Start service
doris-cli start -c /path/to/doris/config.yaml

# Stop service
doris-cli stop -c /path/to/doris/config.yaml

# Check service status
doris-cli status -c /path/to/doris/config.yaml

Running Doris Service (Daemon Mode)

To run the Doris service in daemon mode, add the -d option when starting the service:

./doris-server -c /path/to/doris/config.yaml -d

This allows Doris to run independently and continue until the process is killed or manually stopped.

Comprehensive Usage

The Doris management tools and command line methods can be used together to start, stop, and check the service. For production environments, it is recommended to use the service management tool for management.