clickhouse下載和安裝
1.安裝包下載
wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-server-common-20.8.3.18-1.el7.x86_64.rpm/download.rpm
wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-server-20.8.3.18-1.el7.x86_64.rpm/download.rpm
wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-client-20.8.3.18-1.el7.x86_64.rpm/download.rpm
wget --content-disposition https://packagecloud.io/Altinity/clickhouse/packages/el/7/clickhouse-common-static-20.8.3.18-1.el7.x86_64.rpm/download.rpm
下載好的安裝包
[root@mdb01 clickhouse]# ll
total 103412
-rw-r--r-- 1 clickhouse clickhouse 6384 Oct 6 06:32 clickhouse-client-20.8.3.18-1.el7.x86_64.rpm
-rw-r--r-- 1 clickhouse clickhouse 69093220 Oct 6 06:32 clickhouse-common-static-20.8.3.18-1.el7.x86_64.rpm
-rw-r--r-- 1 clickhouse clickhouse 36772044 Oct 6 06:36 clickhouse-server-20.8.3.18-1.el7.x86_64.rpm
-rw-r--r-- 1 clickhouse clickhouse 14472 Oct 6 06:36 clickhouse-server-common-20.8.3.18-1.el7.x86_64.rpm
也可以直接配置yum源的方式
curl -s https://packagecloud.io/install/repositories/Altinity/clickhouse/script.rpm.sh | sudo bash
2.安裝clickhouse
[root@mdb01 clickhouse]# rpm -ivh clickhouse*
Preparing... ################################# [100%]
Updating / installing...
1:clickhouse-server-common-20.8.3.1################################# [ 25%]
2:clickhouse-common-static-20.8.3.1################################# [ 50%]
3:clickhouse-server-20.8.3.18-1.el7################################# [ 75%]
Create user clickhouse.clickhouse with datadir /var/lib/clickhouse
4:clickhouse-client-20.8.3.18-1.el7################################# [100%]
Create user clickhouse.clickhouse with datadir /var/lib/clickhouse
修改資料目錄:
# cd /etc/clickhouse-server/
# ll
total 44
-rw-r--r-- 1 root root 33738 Oct 6 06:05 config.xml
-rw-r--r-- 1 root root 5587 Oct 6 06:05 users.xml
# more config.xml |grep -B1 '/u01/clickhouse'
<!-- Path to data directory, with trailing slash. -->
<path>/u01/clickhouse/data/</path>
--
<!-- Path to temporary data for processing hard queries. -->
<tmp_path>/u01/clickhouse/tmp/</tmp_path>
--
<!-- Directory with user provided files that are accessible by 'file' table function. -->
<user_files_path>/u01/clickhouse/user_files/</user_files_path>
--
-->
<format_schema_path>/u01/clickhouse/format_schemas/</format_schema_path>
3.啟動clickhouse
nohup clickhouse-server --config-file=/etc/clickhouse-server/config.xml &
4.連線clickhouse
[clickhouse@mdb01 clickhouse]$ clickhouse-client
ClickHouse client version 20.8.3.18.
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 20.8.3 revision 54438.
mdb01 :) show databases;
SHOW DATABASES
┌─name───────────────────────────┐
│ _temporary_and_external_tables │
│ default │
│ system │
└────────────────────────────────┘
3 rows in set. Elapsed: 0.002 sec.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31480688/viewspace-2745701/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ClickHouse(03)ClickHouse怎麼安裝和部署
- clickhouse學習(1)-clickhouse安裝解除安裝
- maven下載和安裝Maven
- tengine下載和安裝
- 下載和安裝PycharmPyCharm
- Nginx下載和安裝Nginx
- oracle下載和安裝Oracle
- Charles的下載和安裝
- MySQL的下載和安裝MySql
- 下載和安裝最新OPatch
- 如何下載和安裝opatch
- clickhouse for centos7安裝和使用初探CentOS
- Python 下載安裝和配置Python
- nodejs下載、安裝和配置NodeJS
- Tesseract引擎的下載和安裝
- MySQL的下載、安裝和配置MySql
- Centos 7下下載和安裝dockerCentOSDocker
- homebrew下載安裝及mysql的下載安裝MySql
- Oracle Linux 7.5下載和安裝OracleLinux
- Oracle 19C 下載和安裝Oracle
- java中maven下載和安裝整理JavaMaven
- Oracle 21C下載和安裝Oracle
- 下載和安裝MySQL資料庫MySql資料庫
- oracle11g安裝和下載Oracle
- matplotlib的下載和安裝方法
- Spring 的下載、安裝和使用Spring
- MAT(Memory Analyzer Tool)下載和安裝
- typora下載安裝以及notepad++下載安裝
- Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)Oracle
- 下載安裝ApacheApache
- 下載安裝gitGit
- MySQL下載安裝MySql
- postgresql 下載安裝SQL
- Newman下載安裝
- VMware 下載安裝
- 鯤鵬920 安裝clickhouse,
- Oracle 19C下載和安裝(二)Oracle
- Tesseract OCR的下載安裝和啟動