当前位置:网站首页>Clickhouse installation (quick start)
Clickhouse installation (quick start)
2022-06-30 09:27:00 【Orangejuicer】
open ClickHouse Official website Quick Start:https://clickhouse.com/#quick-start
Choose your own OS edition :
// Use the following command to determine whether the machine supports ClickHouse install
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"
// install ClickHouse
sudo yum install yum-utils
sudo rpm --import https://repo.clickhouse.com/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.com/rpm/clickhouse.repo
sudo yum install clickhouse-server clickhouse-client
// start-up ClickHouse
sudo /etc/init.d/clickhouse-server start // Start server
clickhouse-client # or "clickhouse-client --password" if you set up a password. // Start client
clickhouse-client // Start the client by default in localhost:9000
clickhouse-client --host=localhost --port=9000 -m // You can also specify it yourself , You can also specify... In the configuration file
// Specific in /etc/clickhouse-server/ Inside config.xml file modify listen_host and port
//-m It means to write in the data sheet sql You can put a sql The statement is entered in a line , Otherwise, I can only say one thing sql Statement full input
More detailed installation contents :https://clickhouse.com/docs/en/getting-started/install/
//ClickHouse The command line simply builds the database 、 Build table 、 Query statement
show databases;
select currentDatabase();
create databases people;
use people;
show tables;
create table user(id Int8,name String) engine=TinyLog;
insert into table user values (1,'zs'),(2.'ls'),(3,'zw');
select * from user;
select count(1) from user;
ClickHouse Directory information :
/etc/clickhouse-server/
config.d config.xml users.d users.xml //config.xml Including clickhouse Global configuration ,users.xml Contains user related configurations
/var/lib/clickhouse/
// There are many documents in it , Main concern data and metadata
//data It contains clickhouse The database of
//metadata Store the metadata information of the corresponding database table , Created people database , There will be people people.sql
/var/log/clickhouse-server/
clickhouse-server.err.log clickhouse-server.log //clickhouse-server Log file
边栏推荐
- Esp32 (6): Bluetooth and WiFi functions for function development
- Talking about the difference between kotlin collaboration and thread
- Baidu map JS browsing terminal
- Startup of MySQL green edition in Windows system
- [cmake] make command cannot be executed normally
- I'm late for school
- Electron, which can wrap web page programs into desktop applications
- Experience of an acmer
- Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
- Dart basic notes
猜你喜欢

Introduction to the runner of mmcv

Deep understanding of continuation principle

Rew acoustic test (I): microphone calibration

Rew acoustic test (III): generate test signal

What kind of experience is it to develop a "grandson" who will call himself "Grandpa"?

Challenge transform() 2D

Resnet50+fpn for mmdet line by line code interpretation

4. use ibinder interface flexibly for short-range communication

I once met a girl whom I most wanted to take care of all my life. Later... No later

Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
随机推荐
Code management related issues
Unsupportedclassversionerror is reported when starting jar package. How to repair it
Implementing custom drawer component in quick application
Niuke IOI weekly competition 20 popularization group (problem solving)
Express get request
Rew acoustic test (II): offline test
Deeply understand the working principle of kotlin collaboration suspend (beginners can also understand it)
Deep Learning with Pytorch-Train A Classifier
2020-11-02
Opencv learning notes-day9 opencv's own color table operation (colormap coloraptypes enumeration data types and applycolormap() pseudo color function)
Six implementation methods of singleton mode
5. Messager framework and imessager interface
2021-10-20
QR code generation and analysis
Esp32 (IX): OTA function of function development
Esp32 (7): I2S and I2C drivers for function development
Flutter theme (skin) changes
Handwriting sorter component
ACM intensive training graph theory exercise 3 in the summer vacation of 2020 [problem solving]
[wechat applet] realize applet pull-down refresh and pull-up loading