第2章 安装
    2.1 网址
    官网:https://clickhouse.yandex/
    下载地址:http://repo.red-soft.biz/repos/clickhouse/stable/el6/
    2.2 单机模式
    2.2.1 上传5个文件到/opt/software/
    [root@hadoop102 software]# ls
    clickhouse-client-1.1.54236-4.el6.x86_64.rpm
    clickhouse-server-1.1.54236-4.el6.x86_64.rpm
    clickhouse-compressor-1.1.54236-4.el6.x86_64.rpm
    clickhouse-server-common-1.1.54236-4.el6.x86_64.rpm
    clickhouse-debuginfo-1.1.54236-4.el6.x86_64.rpm
    2.2.2分别安装这5个rpm文件
    [root@hadoop102 software]# rpm -ivh *.rpm
    Preparing… ########################################### [100%]
    1:clickhouse-server-commo########################################### [ 20%]
    2:clickhouse-server ########################################### [ 40%]
    3:clickhouse-client ########################################### [ 60%]
    4:clickhouse-debuginfo ########################################### [ 80%]
    5:clickhouse-compressor ########################################### [100%]
    2.2.3 启动ClickServer
    前台启动:
    [root@hadoop102 software]# clickhouse-server —config-file=/etc/clickhouse-server/config.xml
    后台启动:
    [root@hadoop102 software]# nohup clickhouse-server —config-file=/etc/clickhouse-server/config.xml >null 2>&1 &

    [1] 2696
    2.2.4 使用client连接server
    [root@hadoop102 software]# clickhouse-client

    ClickHouse client version 1.1.54236.
    Connecting to localhost:9000.
    Connected to ClickHouse server version 1.1.54236.

    :)
    2.3 分布式集群安装