当前位置:网站首页>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
边栏推荐
- Terminal -- Zsh of terminal three swordsmen
- Detailed explanation of rect class
- Niuke walks on the tree (ingenious application of parallel search)
- Maxiouassigner of mmdet line by line interpretation
- List set export excel table
- How do I start? (continuously updating)
- Use Huawei performance management service to configure the sampling rate on demand
- 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!
- Linear-gradient()
- Challenge transform() 2D
猜你喜欢

Find the number that appears only once in the array

Evaluation standard for audio signal quality of intelligent speakers

Installation, use and explanation of vulnerability scanning tool OpenVAS

Deeply understand the working principle of kotlin collaboration suspend (beginners can also understand it)

Maxiouassigner of mmdet line by line interpretation

Tutorial for beginners of small programs day01

Do you want the dialog box that pops up from the click?

桂林 穩健醫療收購桂林乳膠100%股權 填補乳膠產品線空白

Solution to the eighth training competition of 2020 Provincial Games

Interviewer: do you understand the principle of recyclerview layout animation?
随机推荐
Torchvision loads the weight of RESNET except the full connection layer
Script summary
Maxiouassigner of mmdet line by line interpretation
Esp32 things (3): overview of the overall system design
Deep Learning with Pytorch- A 60 Minute Blitz
Express get request
Bottomsheetbehavior principle of realizing the home page effect of Gaode map
Esp32 things (I): Preface
Cronexpression expression explanation and cases
What kind of experience is it to develop a "grandson" who will call himself "Grandpa"?
12. problem set: process, thread and JNI architecture
Talk about how the kotlin process started?
Talk about writing
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
QT downloading files through URL
Rew acoustic test (II): offline test
Rew acoustic test (V): equipment required for test
POJ 1753 flip game (DFS 𞓜 bit operation)
QR code generation and analysis
Esp32 (6): Bluetooth and WiFi functions for function development