当前位置:网站首页>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
边栏推荐
- Agp7.0|kts makes a reinforced plug-in
- Rew acoustic test (II): offline test
- Deep understanding of kotlin collaboration context coroutinecontext
- Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
- Harmonyos actual combat - ten thousand words long article understanding service card development process
- Esp32 things (x): other functions
- [JPEG] how to compile JPEG turbo library files on different platforms
- Understanding of MVVM and MVC
- Reading notes of "Introduction to deep learning: pytoch"
- Rew acoustic test (I): microphone calibration
猜你喜欢
Solution to the eighth training competition of 2020 Provincial Games
Introduction to the runner of mmcv
Talking about kotlin process exception handling mechanism
Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5
Use Huawei performance management service to configure the sampling rate on demand
Rew acoustic test (I): microphone calibration
Installation, use and explanation of vulnerability scanning tool OpenVAS
Opencv learning notes -day13 pixel value statistics calculation of maximum and minimum values, average values and standard deviations (use of minmaxloc() and meanstddev() functions)
The elegant combination of walle and Jianbao
Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)
随机推荐
Interviewer: do you understand the principle of recyclerview layout animation?
Using OpenCV Net for image restoration
Get to know handler again
QT downloading files through URL
Explanation on the use of password profiteering cracking tool Hydra
asdsadadsad
Bottomsheetbehavior principle of realizing the home page effect of Gaode map
MySQL-- Entity Framework Code First(EF Code First)
AutoUpdater. Net client custom update file
Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
Design specification for smart speakers v1.0
Use Huawei performance management service to configure the sampling rate on demand
Express file upload
Interpretation of orientedrcnn papers
[paid promotion] collection of frequently asked questions, FAQ of recommended list
QT connection to Shentong database
How can I get the discount for opening a securities account? Is online account opening safe?
桂林 穩健醫療收購桂林乳膠100%股權 填補乳膠產品線空白
Row column (vertical and horizontal table) conversion of SQL
Talk about how the kotlin collaboration process establishes structured concurrency