标签:调优 install pcm har add org useradd pytho san
1. 系统调优
[root@sht-sgmhadoopcm-01 ~]# echo "vm.max_map_count=131072" >> /etc/sysctl.conf [root@sht-sgmhadoopcm-01 ~]# echo "vm.swappiness = 1" >> /etc/sysctl.conf [root@sht-sgmhadoopcm-01 ~]# sysctl -p [root@sht-sgmhadoopcm-01 ~]# echo "cassandra soft memlock unlimited" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandra hard memlock unlimited" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrasoft nofile 65536" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrahard nofile 65536" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrasoft nproc 65536" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrahard nproc 65536" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrasoft as unlimited" >> /etc/security/limits.conf [root@sht-sgmhadoopcm-01 ~]# echo "cassandrahard as unlimited" >> /etc/security/limits.conf
2. 创建cassandra用户和组
[root@sht-sgmhadoopcm-01 ~]# groupadd -r dba -g 501 [root@sht-sgmhadoopcm-01 ~]# useradd -r -u 501 -g dba cassandra -d /home/cassandra
3. 安装python2.7.*
[root@sht-sgmhadoopcm-01 ~]# wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz [root@sht-sgmhadoopcm-01 ~]# tar -zxf Python-2.7.15.tgz [root@sht-sgmhadoopcm-01 ~]# cd Python-2.7.15 [root@sht-sgmhadoopcm-01 Python-2.7.15]# ./configure --prefix=/usr/local/python-2.7.15 [root@sht-sgmhadoopcm-01 Python-2.7.15]# make && make install [root@sht-sgmhadoopcm-01 Python-2.7.15]# /usr/local/python-2.7.15/bin/python -V Python 2.7.15
4. 安装Java1.8.*
标签:调优 install pcm har add org useradd pytho san
原文地址:https://www.cnblogs.com/ilifeilong/p/9055405.html