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
aptpackage management). - The user must have
rootprivileges orsudoaccess to execute system-level commands. - The server must have an active internet connection to download the installation script from
https://clickhouse.com/. - The
python3-pexpectpackage 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.
- Update the local package index using the
aptpackage manager. - Download the ClickHouse installation script by executing the following command in the
/rootdirectory: - Run the installation script located at
/root/clickhouse install. During this step, the system prompts for: - The password for the default user.
- Confirmation to allow the server to accept connections.
- 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:
The provided configuration does not include specific commands for stopping or updating the service beyond the initial start sequence.