当前位置:网站首页>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
边栏推荐
- 9.JNI_ Necessary optimization design
- Rew acoustic test (I): microphone calibration
- Research on lg1403 divisor
- Startup of MySQL green edition in Windows system
- Summary of Android knowledge points and common interview questions
- 2021-10-20
- Deep understanding of kotlin collaboration context coroutinecontext
- Opencv learning notes -day10 logical operation of image pixels (usage of rectangle function and rect function and bit related operation in openCV)
- How do I start? (continuously updating)
- Couldn't load this key (openssh ssh-2 private key (old PEM format))
猜你喜欢

So the toolbar can still be used like this? The toolbar uses the most complete parsing. Netizen: finally, you don't have to always customize the title bar!

ES6 learning path (II) let & const

float

ES6 learning path (III) deconstruction assignment

Guilin robust medical acquired 100% equity of Guilin Latex to fill the blank of latex product line

Advanced technology management -- how managers design and build echelons

Metasploit practice - SSH brute force cracking process

Sort (simple description)

Esp32 things (II): sharpening the knife without mistaking firewood - make preparations before project development

Rew acoustic test (VI): signal and measurement
随机推荐
8.8 heap insertion and deletion
Talking about the difference between kotlin collaboration and thread
Differences between the notify(), notifyall(), notifydatasetchanged(), notifydatasetinvalidated() methods in the adapter
Opencv learning notes -day 11 (split() channel separation function and merge() channel merge function)
2020-11-02
127.0.0.1, 0.0.0.0 and localhost
Talking about kotlin process exception handling mechanism
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Rew acoustic test (I): microphone calibration
QR code generation and analysis
7. know JNI and NDK
Esp32 (4): overview of the overall code architecture
Script summary
About MySQL Boolean and tinyint (1)
Do you want the dialog box that pops up from the click?
Pipe pipe --namedpipe and anonymouspipe
Deep Learning with Pytorch-Train A Classifier
Harmonyos actual combat - ten thousand words long article understanding service card development process
Opencv learning notes-day14 drawing of image geometry (rect class rotatedrect class, rectangle drawing rectangle circle drawing circular function line drawing line function ellipse drawing elliptic fu
Esp32 things (x): other functions