CentOS7 安裝clickhouse 并連接配接DBeaver
安裝clickhouse
先檢查是否可以安裝clickhouse
grep -q sse4_2 /proc/cpuinfo && echo “SSE 4.2 supported” || echo “SSE 4.2 not supported
這裡要使用rmp安裝包 clickhouse官網
yum install -y yum-utils
yum-config-manager --add-repo https://packages.clickhouse.com/rpm/clickhouse.repo
yum install -y clickhouse-server clickhouse-client
正在下載下傳會需要一些時間
啟動clickhouse服務端
/etc/init.d/clickhouse-server start
啟動clickhouse用戶端
clickhouse-client
設定賬戶
找到clickhouse-server檔案夾可以用bach或者直接從目錄找到檔案去修改
/etc/clickhouse-server/
clickhouse官網/設定使用者
打開users.xml檔案
<root>
<password_sha256_hex></password_sha256_hex>/<password></password>
<networks incl="networks" replace="replace">
<ip>::/0</ip>
</networks>
<profile>default</profile>
<quota>default</quota>
</root>
設定網路
clickhouse-server 檔案下的 config.xml檔案
解注釋掉listen_host
重新啟動下clickhouse
service clickhouse-server stop
service clickhouse-server start
clickhouse-client
關閉虛拟機的防火牆
檢視ip位址
ip addr
檢視防火牆狀态
systemctl status firewalld
關閉防火牆
systemctl disable firewalld
重新開機虛拟機
如果想要别的電腦可以連接配接上該太電腦的虛拟機上的防火牆則還需要打開主機的防火牆
連接配接DBeaver
在主機上打開DBeaver 如果DBeaver裝在了虛拟機上就不需要關閉虛拟機的防火牆
輸入使用者名密碼還有ip位址 第一次添加要下載下傳驅動檔案
資料庫操作的時候要保證虛拟機是運作狀态的不然是連不上的喔