centos7 4安裝及使用clickhouse

2021-10-07 23:08:30 字數 1281 閱讀 2881

一、安裝:

按照官方文件推薦,用yum方式安裝最方便

#yum install yum-utils -y

# rpm --import

# yum-config-manager --add-repo

loaded plugins: fastestmirror

adding repo from:

[repo.yandex.ru_clickhouse_rpm_stable_x86_64]

name=added from:

baseurl=

enabled=1

# yum install clickhouse-server clickhouse-client -y(此步時間有點長,多等會)

二、使用

啟動client

退出client

顯示已有資料庫

建立資料庫

建立表例如: create table colleague (date date,name char,age uint16,year uint16) engine = mergetree(date, (year,date), 8192);

給表插入一些測試資料

例如:insert into colleague (date,name,age,year)values('2020-07-16','james','28','2020');

centos7 4 安裝nfs及使用

一 安裝nfs 1.yum y install nfs utils rpcbind 2.建立共享資料夾 data nfc touch data nfc 3.vi etc exports 編輯nfs的配置檔案 4.新增內容 data nfc 172.18.155.161 被掛載伺服器 rw 授予該伺服...

CentOS 7 4 編譯安裝Tengine

tengine官網上有個非常簡單的教程,中間並未涉及到一些常用的設定,所以僅供參考。一下午為本人的安裝步驟及過程。配置firewalld,iptables,關閉selinux 1 安裝必要的編譯環境好 由於tengine安裝需要使用源 自行編譯,所以在安裝前需要安裝必要的編譯工具 yum y upd...

Ansible 安裝步驟 (Centos7 4

epel安裝2 安裝epel repo源 epel rhel 7 wget o etc yum.repos.d epel.repo epel rhel 6 wget o etc yum.repos.d epel.repo epel rhel 5 wget o etc yum.repos.d epel...