最近在作集成Vertica项目,须要把Vertica作成镜像,在openstack和hos上运行,so,本身在CentOS上安装配置Verticapython
一.首先安装配置centos7linux
centos7分区必定要用ext3或ext4,vertica要求这两种格式,磁盘类型必须选择:Standard Partitionsql
https://my.vertica.com/docs/7.2.x/HTML/index.htm#cshid=S0160数据库
https://my.vertica.com/docs/7.2.x/HTML/index.htm#cshid=S0170vim
安装配置:centos
/swap 4Gbash
/boot 500Msession
/var 40G工具
/home 20Gui
/ 16G
二.安装前配置centos依赖软件
安装好centos以后能够安装vertica了,vertica安装前须要准备依赖
1.配置ip获取ip,查看ip地址:ip addr
2.查看磁盘分区:df -Th -x vfat
3.配置yum源,上传vertica的rpm
cd /etc/yum.repos.d/
换成本身的yum源
yum update
yum -y install net-tools
三.开始vertica安装前准备
#1. 能够用以下命令建立Vertica管理用户vdbadmin并设置密码:
# useradd vdbadmin -u 755 -d /home/vertica -s /bin/bash # passwd vdbadmin
(pass@word1)
#2.上传RPM包到指定位置
# mount /dev/sdb4 /mnt/ # cp /mnt/vertica-7.0.2-1.x86_64.RHEL5.rpm /home/vertica # cp /mnt/vertica-client-7.0.2-1.x86_64.rpm /home/vertica # cp /mnt/vertica-console-7.0.2-1.x86_64.RHEL5.rpm /home/vertica
#3.修改主机名
#vim /etc/hosts (修改或添加:) 127.0.0.1 verticaserver
#4.关闭防火墙 (目前没装)
# chkconfig iptables --level 3 5 off
# chkconfig ip6tables --level 3 5 off
# service iptables stop
#5.关闭SELINUX:
# vim /etc/selinux/config 从SELINUX=enforcing改到 SELINUX=disabled
# setenforce 0
#6.安装支撑工具软件
# yum install gdb –y # yum install mcelog –y # yum install sysstat –y # yum install ntp –y
# yum install dialog -y
# /sbin/service ntpd restart # chkconfig --level 3 5 ntpd on
#7.检查5433 端口未被使用
(5433为vsql远程链接数据库的端口) # cat /etc/services |grep 5433
#8.检测python
# which python (检查python是否安装) # python --version (检查python版本号)
# yum install python -y
#9.检测rsync
# which rsync (检查rsync是否安装) # rsync --version (检查rsync版本号大于3.0.5)
# yum intall rsync
#10. 检测/dev/pts 有无被加载
# ls /dev |grep pts
#11. 修改vdbadmin的baash_profile或profile文件
添加以下内容: # export LANG=en_US.UTF-8 #export TZ="America/New_York"
#12.关闭CPU CPU Frequency Scaling (没执行)
# chkconfig --level 3 cpuspeed off
# service cpuspeed stop
#13.配置Pam配置文件
# /etc/pam.d/su 在该文件里添加以下行 session required pam_limits.so
#14.改I/O Scheduler 要根据状况来改。 通常是sda
# echo deadline > /sys/block/sda/queue/scheduler # cat /sys/block/sda/queue/scheduler
#15.改 /etc/rc.local
# echo '/sbin/blockdev --setra 2048 /dev/sda' >> /etc/rc.local
#16.改变/etc/grub.conf
#vim /etc/grub.conf 添加:transparent_hugepage=never # echo always > /sys/kernel/mm/transparent_hugepage/enabled
#17.使用root用户安装Vertica rpm包
# rpm -Uvh /home/vertica/vertica-7.0.2-1.x86_64.RHEL5.rpm
#18. 使用root用户安装Vertica,并指定Vertica管理用户
# /opt/vertica/sbin/install_vertica -s verticaserver -u vdbadmin -g vdbadmin -l /home/vertica -d /home/vertica
#19.安装vertica的mc
rpm -Uvh --force /home/vertica/vertica-console-7.0.2-1.x86_64.RHEL5.rpm