我要评分
获取效率
正确性
完整性
易理解

Installing ClickHouse

This section describes how to install ClickHouse on the Meta node.

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