安装前准备:
1.取消打开文件数限制:
修改打开文件限制,修改修改两个文件,分别是:
vi /etc/security/limits.conf
vim /etc/security/limits.d/20-nproc.conf
在上面两个文件末尾都添加:
* soft nofile 1024000
* hard nofile 1024000
* soft nproc 1024000
* hard nproc 1024000
2.关闭selinux:
sudo vim /etc/selinux/config
SELINUX=disabled
3.关闭防火墙:
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
4.安装依赖
yum install -y libtool
yum install -y *unixODBC*
文件准备:
Centos7.5离线安装clickhouse下载地址:
https://packagecloud.io/altinity/clickhouse
?下载如下文件即可
clickhouse-client-20.8.3.18-1.el7.x86_64.rpm
clickhouse-common-static-20.8.3.18-1.el7.x86_64.rpm
clickhouse-server-20.8.3.18-1.el7.x86_64.rpm
clickhouse-server-common-20.8.3.18-1.el7.x86_64.rpm
开始安装:
mkdir -p /opt/clickhouse
将下载的rpm文件上传至该文件夹,执行安装命令
rpm -ivh *.rpm
启动服务:
service clickhouse-server start
进入客户端:
clickhouse-client
停止服务:
service clickhouse-server start
service clickhouse-server stop
外部访问clickhouse配置:
cd /etc/clickhouse-server
把下面这行的注释去掉就行了,这样就可以通过idea访问clickhouse了
<listen_host>::</listen_host>
|