Installing ClickHouse
This section describes how to install ClickHouse on the Meta node.
- Obtain the installation package and install it.
cd /home curl -k https://clickhouse.com/ | sh sudo ./clickhouse install
- When the message "Allow server to accept connections from the network (default is localhost only), [y/N]" is displayed, enter y and press Enter.
- After the installation is complete, enter the password as prompted and press Enter. In this document, clickhouse123 is used as an example password.
- Change the default ClickHouse port.
chmod 660 /etc/clickhouse-server/config.xml vim /etc/clickhouse-server/config.xml
- Locate the <tcp_port> tag and change the port to 9123.
... <tcp_port>9123</tcp_port>...
- Start ClickHouse.
clickhouse start
- Create a metric table.
clickhouse-client --port 9123 --password 'clickhouse123' -n < /home/3fs/deploy/sql/3fs-monitor.sql
Parent topic: Installing Components and Deploying the Meta Node