自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS7單機(jī)快速安裝clickhouse

系統(tǒng) Linux
centos(CommunityEnterprise Operating System)是社區(qū)企業(yè)操作系統(tǒng),是Linux發(fā)行版之一。 centos是由Red Hat Enterprise Linux依照開(kāi)放源代碼規(guī)定釋出的源代碼所編譯而成,但它并不包含封閉源代碼軟件。

Centos(CommunityEnterprise Operating System)是社區(qū)企業(yè)操作系統(tǒng),是Linux發(fā)行版之一。 centos是由Red Hat Enterprise Linux依照開(kāi)放源代碼規(guī)定釋出的源代碼所編譯而成,但它并不包含封閉源代碼軟件。

 國(guó)內(nèi)鏡像站

Clickhouse 官方的下載地址在國(guó)外,下載速度比較慢,可以使用國(guó)內(nèi)鏡像站進(jìn)行安裝比較快。

Debian/Ubuntu 用戶

新建/etc/apt/sources.list.d/clickhouse.list,內(nèi)容為

  1. deb https://mirrors.tuna.tsinghua.edu.cn/clickhouse/deb/stable/ main/ 

RHEL/CentOS 用戶

新建 /etc/yum.repos.d/clickhouse.repo,內(nèi)容為

  1. [clickhouse] 
  2. name=clickhouse stable 
  3. baseurl=https://mirrors.tuna.tsinghua.edu.cn/clickhouse/rpm/stable/x86_64 
  4. enabled=1 
  5. gpgcheck=0 

安裝

在CentOS7上直接使用yum直接安裝就可以。

  1. yum install clickhouse-server clickhouse-client -y 

啟動(dòng)服務(wù)并設(shè)置開(kāi)機(jī)啟動(dòng)

  1. systemctl start clickhouse-server 
  2. systemctl enable clickhouse-server 

測(cè)試 

直接使用clickhouse-client進(jìn)行連接

  1. clickhouse-client 

創(chuàng)建數(shù)據(jù)庫(kù)和一張表測(cè)試

  1. create database metrics; 
  2. use metrics 
  3. create table servers( id UInt64 ,ip String ,count UInt64) engine=TinyLog; 
  4. insert into servers (id , ip , countvalues (1,'127.0.0.1',100); 
  5. select * from servers; 

  1. centos7 :) select * from servers; 
  2. ​ 
  3. SELECT * 
  4. FROM servers 
  5. ​ 
  6. ┌─id─┬─ip────────┬─count─┐ 
  7. │ 1 │ 127.0.0.1 │ 100 │ 
  8. └────┴───────────┴───────┘ 
  9. ​ 
  10. rows in set. Elapsed: 0.002 sec. 
  11. ​ 
  12. centos7 :) 

 

 

責(zé)任編輯:姜華 來(lái)源: 今日頭條
相關(guān)推薦

2021-08-11 06:16:27

CentOS 7 MongodbC++

2021-05-12 07:42:41

CentOS7Python3系統(tǒng)

2020-08-28 11:20:01

CentOS7RocketMQ 4.運(yùn)維

2022-02-14 07:47:30

巡風(fēng)CentOS7漏洞掃描

2023-11-09 07:44:21

2015-02-03 03:00:51

CentOSJetty

2019-06-27 10:17:40

Centos7Pinpoint監(jiān)控

2010-03-30 10:58:29

2021-01-08 09:02:19

CentOS7Prometheus監(jiān)控

2017-02-27 11:06:59

RHEL7CentOS7密碼

2024-04-02 08:56:56

2022-05-23 07:48:10

zabbix監(jiān)控CentOS7

2010-03-31 13:04:37

CentOS安裝

2021-05-14 08:05:11

Centos7 Unit配置

2022-05-31 07:40:44

LsyncdCentOS7

2021-06-29 12:10:48

CentOSMySQL工具

2014-12-01 11:27:54

CentOS 7Docker

2020-07-16 08:37:39

NginxCentOS7搭建

2017-05-03 14:00:00

LinuxCentOSElastic Sta

2021-08-09 08:38:10

CentOS7Zabbix 監(jiān)控
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)