当前位置:网站首页>Clickhouse database installation deployment and remote IP access
Clickhouse database installation deployment and remote IP access
2022-07-05 07:19:00 【jiankang66】
Catalog
Two 、 Installation and deployment
3、 ... and 、 Realize remote ip visit
One 、 background
ClickHouse It's an on-line analysis (OLAP) Column database management system (DBMS). Want to install and use , I chose rpm install .linux System is centos7 edition .
Two 、 Installation and deployment
1、 You can visit the official website to download , But there are so many bags , light clickhouse-client There are so many bags , as follows .
(1) You can download it on the official website , This is the address
Installation | ClickHouse Documentation
2、 Mainly download four rpm package
(2) You can also download this website , I choose the following website .
Altinity/clickhouse - Packages · packagecloud
2、 We mainly download the following .
clickhouse-common-static-20.8.3.18-1.el7.x86_64.rpm
clickhouse-server-common-20.8.3.18-1.el7.x86_64.rpm
clickhouse-server-20.8.3.18-1.el7.x86_64.rpm
clickhouse-client-20.8.3.18-1.el7.x86_64.rpm
3、 You can download directly through Baidu online disk .
link :https://pan.baidu.com/s/1bgCIjfwoBiqQjeL97fJG_w
Extraction code :i7hp
3、 Upload to the server after downloading
(1) I downloaded it to windows A local directory , Then open the cmd, Execute the following command , Upload the folder to a directory on the server . Of course, it can also be sudo wget To download .
scp -r clickhouse/ [email protected]:/developer/
4、 After uploading, go to the upload directory and execute the following installation command . There is a dependent order , The following installation sequence .
rpm -ivh clickhouse-common-static-20.8.3.18-1.el7.x86_64.rpm
rpm -ivh clickhouse-server-common-20.8.3.18-1.el7.x86_64.rpm
rpm -ivh clickhouse-server-20.8.3.18-1.el7.x86_64.rpm
rpm -ivh clickhouse-client-20.8.3.18-1.el7.x86_64.rpm
5、 start-up clickhouse-server.
service clickhouse-server start
6、 start-up clickhouse-client client .
clickhouse-client
7、 perform select 1; Can return 1 Indicates that... Was successfully started .
8、 But we access the database through the browser 8123 Unable to return a result .
3、 ... and 、 Realize remote ip visit
1、 First, turn off the firewall , My native virtual machine , Turn off the firewall directly and disable , If you use ECs, check whether the security group is enabled 8123 port .
(1) View firewall status
systemctl status firewalld.service
(2) Turn off firewall
systemctl stop firewalld.service
(3) Check again whether the firewall is turned off
systemctl status firewalld.service
(4) Execute boot disable firewall
systemctl disable firewalld.service
2、 modify clickhouse-server Configuration file for
(1) Execute the following command to open clickhouse-server Configuration file for
vim /etc/clickhouse-server/config.xml
(2) Modify the document , Open the comment of the following configuration :
<listen_host>::</listen_host>
3、 Execute the following command to restart clickhouse-server.
service clickhouse-server restart
4、 Again via remote ip visit , As you can see below, the visit was successful .
5、 At the same time, we go through postman, Please sql Inquire about , The result is returned normally .
Four 、 summary
That's all clickhouse Database installation and deployment and remote ip All content accessed , Record it here , I hope I can help you , If you think it's good , Welcome to wechat search java Basic notes , Relevant knowledge will be continuously updated later , Make progress together . Baidu SkyDrive clickhose rpm The address of the relevant package software is as follows .
link :https://pan.baidu.com/s/1bgCIjfwoBiqQjeL97fJG_w
Extraction code :i7hp
边栏推荐
- Mipi interface, DVP interface and CSI interface of camera
- Raspberry pie 4B arm platform aarch64 PIP installation pytorch
- Ros2 topic (VIII)
- Rough notes of C language (1)
- 氫氧化鈉是什麼?
- ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
- 一文揭开,测试外包公司的真实情况
- SOC_ SD_ CMD_ FSM
- Special training of C language array
- SOC_SD_DATA_FSM
猜你喜欢
DelayQueue延迟队列的使用和场景
SOC_SD_CMD_FSM
Matrix and TMB package version issues in R
【软件测试】03 -- 软件测试概述
The problem of configuring opencv in qt5.13.2 is solved in detail
数学分析_笔记_第8章:重积分
SD_ CMD_ RECEIVE_ SHIFT_ REGISTER
Ros2 - function package (VI)
(tool use) how to make the system automatically match and associate to database fields by importing MySQL from idea and writing SQL statements
【Node】nvm 版本管理工具
随机推荐
An article was opened to test the real situation of outsourcing companies
【软件测试】03 -- 软件测试概述
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
Rough notes of C language (1)
Xiaomi written test real question 1
Course learning accumulation ppt
Typescript get timestamp
npm install -g/--save/--save-dev的区别
M2DGR 多源多场景 地面机器人SLAM数据集
现在有html文件,和用vs制作的mvc(连接了数据库),怎么两个相连?
postmessage通信
[software testing] 03 -- overview of software testing
二分查找(折半查找)
And let's play dynamic proxy (extreme depth version)
【Node】nvm 版本管理工具
氢氧化钠是什么?
Three body goal management notes
并发编程 — 如何中断/停止一个运行中的线程?
Matlab在线性代数中的应用(四):相似矩阵及二次型
Concurrent programming - deadlock troubleshooting and handling