当前位置:网站首页>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
边栏推荐
- Ros2 - first acquaintance with ros2 (I)
- 基于Cortex-M3、M4的GPIO口位带操作宏定义(可总线输入输出,可用于STM32、ADuCM4050等)
- Netease to B, soft outside, hard in
- How can Oracle SQL statements modify fields that are not allowed to be null to allow nulls?
- HDU1231 最大连续子序列(分治or动规or双指针)
- Raspberry pie 4B arm platform aarch64 PIP installation pytorch
- Rough notes of C language (1)
- [node] differences among NPM, yarn and pnpm
- Do you choose pandas or SQL for the top 1 of data analysis in your mind?
- [software testing] 03 -- overview of software testing
猜你喜欢
PHY drive commissioning - phy controller drive (II)
M2DGR 多源多场景 地面机器人SLAM数据集
Today, share the wonderful and beautiful theme of idea + website address
window navicat连接阿里云服务器mysql步骤及常见问题
[software testing] 04 -- software testing and software development
Machine learning Seaborn visualization
M2dgr slam data set of multi-source and multi scene ground robot
网易To B,柔外刚中
IPage能正常显示数据,但是total一直等于0
一文揭开,测试外包公司的真实情况
随机推荐
Word import literature -mendeley
MySQL setting trigger problem
golang定时器使用踩的坑:定时器每天执行一次
NPM and package common commands
【obs】x264编码:“buffer_size“
Batch convert txt to excel format
Energy conservation and creating energy gap
基于FPGA的一维卷积神经网络CNN的实现(八)激活层实现
2022.06.27_每日一题
Concurrent programming - how to interrupt / stop a running thread?
And play the little chestnut of dynamic agent
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
Machine learning Seaborn visualization
SD_ CMD_ RECEIVE_ SHIFT_ REGISTER
Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
【无标题】
Concurrent programming - deadlock troubleshooting and handling
[vscode] search using regular expressions
Netease to B, soft outside, hard in
list. files: List the Files in a Directory/Folder