大数据培训ClickHouse安装前的准备

大数据培训ClickHouse安装前的准备

1 CentOS取消打开文件数限制

在/etc/security/limits.conf、/etc/security/limits.d/90-nproc.conf这2个文件的末尾加入一下内容:

[root@hadoop102 software]# vim /etc/security/limits.conf

在文件末尾添加:

* soft nofile 65536

* hard nofile 65536

* soft nproc 131072

* hard nproc 131072

[root@hadoop102 software]# vim /etc/security/limits.d/90-nproc.conf

在文件末尾添加:

* soft nofile 65536

* hard nofile 65536

* soft nproc 131072

* hard nproc 131072

重启服务器之后生效,用ulimit -n 或者ulimit -a查看设置结果

[root@hadoop102 ~]# ulimit -n

65536

2 CentOS取消SELINUX

修改/etc/selinux/config中的SELINUX=disabled后重启

[root@hadoop102 ~]# vim /etc/selinux/config

SELINUX=disabled

3 关闭防火墙

[root@hadoop102 ~]# service iptables stop

[root@hadoop102 ~]# service ip6tables stop

ip6tables:将 chains 设置为 ACCEPT 策略:filter            [确定]

ip6tables:清除防火墙规则:                                [确定]

:正在卸载模块:                                           [确定]

4 安装依赖

[root@hadoop102 ~]# yum install -y libtool

[root@hadoop102 ~]# yum install -y *unixODBC*

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值