码迷,mamicode.com
首页 > 其他好文 > 详细

Cassandra V2.1.20单机安装

时间:2018-05-18 14:20:35      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:调优   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.*

 

Cassandra V2.1.20单机安装

标签:调优   install   pcm   har   add   org   useradd   pytho   san   

原文地址:https://www.cnblogs.com/ilifeilong/p/9055405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!