環境: centos7.5
dockerapache-01
dockerapache-02
dockerapache-03
clickhouse-client-20.3.8.53-2.noarch.rpm
clickhouse-common-static-20.3.8.53-2.x86_64.rpm
clickhouse-common-static-dbg-20.3.8.53-2.x86_64.rpm
clickhouse-server-20.3.8.53-2.noarch.rpm
clickhouse-test-20.3.8.53-2.noarch.rpm
以下操作針對單台伺服器
檢查sse 指令集
grep -q sse4_2 /proc/cpuinfo && echo
"sse 4.2 supported"||
echo
"sse 4.2 not supported"
匯入gpg
rpm --import /root/clickhouse-key.gpg
否則可能報錯:
警告:clickhouse-common-static-20.3.8.53-2.x86_64.rpm: 頭v4 rsa/sha1 signature, 金鑰 id e0c56bd4: nokey
開始安裝
rpm -ivh clickhouse-common-static-20.3.8.53-2.x86_64.rpm
rpm -ivh clickhouse-server-20.3.8.53-2.noarch.rpm
rpm -ivh clickhouse-common-static-dbg-20.3.8.53-2.x86_64.rpm
rpm -ivh clickhouse-client-20.3.8.53-2.noarch.rpm
配置config.xml 放開遠端訪問
實際生產環境中,預設的資料目錄、臨時目錄、日誌目錄等,通常放在資料盤而不是系統盤,所以會做相應調整;其他看需要進行配置。
啟動server
sudo /etc/init.d/clickhouse-server start
啟動客戶端
集群搭建
拷貝rpm至另外兩台伺服器
scp clickhouse* root@dockerapache-01:/root
scp clickhouse* root@dockerapache-02:/root
scp clickhouse-key.gpg root@dockerapache-01:/root
scp clickhouse-key.gpg root@dockerapache-02:/root
安裝rpm
rpm --import clickhouse-key.gpg
rpm -ivh clickhouse-common-static-20.3.8.53-2.x86_64.rpm
rpm -ivh clickhouse-server-20.3.8.53-2.noarch.rpm
rpm -ivh clickhouse-common-static-dbg-20.3.8.53-2.x86_64.rpm
rpm -ivh clickhouse-client-20.3.8.53-2.noarch.rpm
配置 config.xml
vim /etc/clickhouse-server/config.xml
::1127.0.0.1
/etc/clickhouse-server/metrika.xml
配置metrika.xml
vim /etc/clickhouse-server/metrika.xml
true
dockerapache-03
10000
dockerapache-02
11000
true
dockerapache-02
10000
dockerapache-01
11000
true
dockerapache-01
10000
dockerapache-03
11000
-servers>
"1">
dockerapache-01
2181
"2">
dockerapache-02
2181
"3">
dockerapache-03
2181
::/0
10000000000
0.01
lz4
配置 macros.xml
vim /etc/clickhouse-server/config.d/macros.xml
01
01
ck_cluster-01-1
01
02
ck_cluster-02-1
01
03
ck_cluster-03-1
6.啟動
service clickhouse-server start
ps-ef | grep click
TRX離線簽名 離線生成位址
波場代幣遷移說明 trx的erc20代幣遷移至波場主網代幣.廢話不多說 不明白的可以看下上面的公告 快捷生成trx位址 return throws invalidalgorithmparameterexception throws nosuchalgorithmexception throws no...
python安裝離線包 python離線包
只是,乙份離線的文件畢竟能更讓人安心。接下來引導大家獲取乙個離線的gdal文件 python 開啟github02https github.compcjerickspy gdalogr cookbook.乙個有趣的靈魂w gdal的官網一搜就有了 www.gdal.org。裡面對gdal各種函式的描...
openg離線包 OpenGL離線渲染和緩衝區物件
理論 輸入 影象,點,線。輸出 影象 實現方案 從一般到特殊 1.不支援fbo 主要介紹pc上,移動裝置如果不支援fbo要實現離線渲染那就實在沒轍了。gldrawbuffer gl back glreadbuffer gl back 設定讀寫時後快取區。一般pc都支援雙緩衝機制,如果沒有gl bac...