Skip to content

Deployment Overview of ClickHouse on Server

Prerequisites and Basic Requirements

The deployment process requires a Linux server running Ubuntu. The following conditions must be met before initiating the installation:

  • The operating system must be Ubuntu (compatible with versions requiring apt package management).
  • The user must have root privileges or sudo access to execute system-level commands.
  • The server must have an active internet connection to download the installation script from https://clickhouse.com/.
  • The python3-pexpect package is required on Ubuntu 24.04 systems to handle interactive prompts during installation.

Application Installation Process

The ClickHouse application is installed using a shell script downloaded directly from the official source. The installation is performed in a non-interactive mode where the default user password is set automatically.

  1. Update the local package index using the apt package manager.
  2. Download the ClickHouse installation script by executing the following command in the /root directory:
    curl https://clickhouse.com/ | sh
    
  3. Run the installation script located at /root/clickhouse install. During this step, the system prompts for:
  4. The password for the default user.
  5. Confirmation to allow the server to accept connections.
  6. The installation script configures the service and prepares the environment for the database engine.

Starting, Stopping, and Updating

After the installation is complete, the ClickHouse service must be started manually. The service management is handled via the clickhouse command-line utility.

  • To start the ClickHouse service, execute:
    clickhouse start
    

The provided configuration does not include specific commands for stopping or updating the service beyond the initial start sequence.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×