一:环境准备
1.配置主机名
hostnamectl set-hostname ${hostname}
2.配置hosts
ip hostname
3.关闭防火墙
vim /etc/selinux/config 改为 SELINUX=disabled
ps:
1)关闭systemctl stop firewalld
2)查看防火墙端口是否开发
lsof -i:80 or netstat -apnt |grep 80
重启防火墙:systemctl restart firewalld.service
查看所有开放端口:firewall-cmd --list-ports
查看防火墙状态:firewall-cmd --state
开启防火墙:systemctl start firewalld.service
设置防火墙开机自启动:systemctl enable firewalld.service
重启防火墙:systemctl restart firewalld.service
二::clickhouse 前期准备
1.创建用户
useradd clickhouse
passwd clickhouse
2.clickhouse用户授权
visudo
添加 clickhouse ALL=(ALL) ALL
3.创建日志 数据等目录
略
4.jdk 安装
5.zk 安装
三:安装clickhouse
1.安装
sudo rpm -ivh clickhouse-*.rpm
2. 修改config.xml 文件
2.修改users.xml