In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to install clickhouse in CentOS7. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Debian/Ubuntu user
New / etc/apt/sources.list.d/clickhouse.list, the content is
Deb https://mirrors.tuna.tsinghua.edu.cn/clickhouse/deb/stable/ main/
RHEL/CentOS user
New / etc/yum.repos.d/clickhouse.repo, the content is
[clickhouse] name=clickhouse stable baseurl= https://mirrors.tuna.tsinghua.edu.cn/clickhouse/rpm/stable/x86_64 enabled=1 gpgcheck=0
Installation
You can install it directly using yum on CentOS7.
Yum install clickhouse-server clickhouse-client-y
Start the service and set up boot
Systemctl start clickhouse-server systemctl enable clickhouse-server
test
Connect directly using clickhouse-client
Clickhouse-client
Create a database and a table test
Create database metrics
Use metrics
Create table servers (id UInt64, ip String, count UInt64) engine=TinyLog
Insert into servers (id, ip, count) values (1meme 127.0.0.1)
Select * from servers
Centos7:) select * from servers; SELECT * FROM servers ┌─ id ─┬─ ip ─┬─ count ─┐ │ 1 │ 127.0.0.1 │ 100 │ └────┴─┴─┘ 1 rows in set. Elapsed: 0.002 sec. Centos7:) the above is how to install clickhouse in CentOS7. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.