当前位置:网站首页>Clickhouse learning (II) Clickhouse stand-alone installation
Clickhouse learning (II) Clickhouse stand-alone installation
2022-07-29 08:24:00 【Crying dogs in the sun】
Catalog
preparation
Turn off firewall
Turn off firewall :
systemctl stop firewalld.service
View firewall status :
systemctl status firewalld.service
Enable disable firewall :
systemctl disable firewalld.service

CentOS Remove the limit on the number of open files
stay limits.x Add information under the two files
[[email protected] ~]# vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072

[[email protected] ~]# vi /etc/security/limits.d/20-nproc.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072

Distribute the configured files to the other two machines 
Installation dependency
All three machines should be installed
[[email protected] ~]# yum install -y libtool

[[email protected] ~]# yum install -y *unixODBC*

CentOS Cancel SELINUX
modify /etc/selinux/config Medium SELINUX=disabled Restart after 
Distribution machine 
install
The official website says there are two installation methods , One is yum install , One is rpm Package installation 
Here I use rpm Package installation
rpm Download address
We need the following four bags 
Distribute it to other machines 
install rpm package
[[email protected] clickhouse]# rpm -ivh *.rpm

Here are the settings clickhouse Customer service password 
Check rpm Is the installation successful
[[email protected] clickhouse]# rpm -qa|grep clickhouse

rpm The default installation path of the package is /etc
Modify the configuration file
[[email protected] clickhouse]# vi /etc/clickhouse-server/config.xml

Distribute documents 
start-up ClickHouse
start-up server
Since the single machine mode is used, it is OK to start the service on one machine
[[email protected] clickhouse-server]# systemctl start clickhouse-server
No auto start
All three machines should be set
[[email protected] clickhouse-server]# systemctl disable clickhouse-server
Use client Connect server
[[email protected] clickhouse-server]# clickhouse-client -m


Change the default port
[[email protected] ~]# vi /etc/clickhouse-server/config.xml

Restart after modification clickhouse
[[email protected] ~]# systemctl restart clickhouse-server
After the modification, you have to specify the port number for login
[[email protected] ~]# clickhouse-client --port 9876

Simple usage
- -m: It means that you can wrap , With ; For the end
- --query “sql sentence ”: Direct operation sql Statements need not enter the customer service terminal , similar hive -e The function of
- -h hostname: Allow other hosts to connect
边栏推荐
- [robomaster] control RM motor from scratch (2) -can communication principle and electric regulation communication protocol
- Brief introduction and use of commonjs import and export and ES6 modules import and export
- Tb6600+stm32f407 test
- TCP——滑动窗口
- [noi simulation] computational geometry (convex hull, violence, and search set)
- Component transfer participation lifecycle
- Si12t and si14t low power capacitive touch chips
- Inclination sensor accuracy calibration test
- SQL 面试碰到的一个问题
- BiSeNet v2
猜你喜欢

RPC and rest

Qt/pyqt window type and window flag

Day6: using PHP to write landing pages

Tensorboard use

centos7/8命令行安装Oracle11g

Alibaba political commissar system - Chapter 4: political commissars are built on companies

Cluster usage specification

Simplefoc parameter adjustment 3-pid parameter setting strategy

User identity identification and account system practice

集群使用规范
随机推荐
Thrift installation manual
[robomaster] a board receives jy-me01 angle sensor data -- Modbus Protocol & CRC software verification
node:文件写入数据(readFile、writeFile),覆盖与增量两种模式
Simple calculator wechat applet project source code
Noise monitoring and sensing system
MySQL中的时间函数
Centos7/8 command line installation Oracle11g
Collation of ml.net related resources
Back up Google or other browser plug-ins
Temperature acquisition and control system based on WiFi
ML.NET相关资源整理
Alibaba political commissar system - Chapter 1: political commissars are built on companies
亚马逊测评自养号是什么,卖家应该怎么做?
Data warehouse layered design and data synchronization,, 220728,,,,
Simplefoc parameter adjustment 1-torque control
Ws2812b color lamp driver based on f407zgt6
Proteus simulation based on msp430f2491
Hal library learning notes - 8 concept of serial communication
HC-SR04超声波测距模块使用方法和例程(STM32)
Time function in MySQL