cat << EOF >> /etc/sysctl.conf
net.ipv4.ip_forward = 0
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 500 1024000 200 4096
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.msgmni = 2048
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.ip_local_port_range = 1025 65535
net.core.netdev_max_backlog = 10000
net.core.rmem_max = 2097152
net.core.wmem_max = 2097152
vm.overcommit_memory = 2
vm.swappiness = 10
net.ipv4.tcp_tw_recycle = 1
vm.zone_reclaim_mode = 0
vm.dirty_expire_centisecs = 500
vm.dirty_writeback_centisecs = 100
vm.dirty_background_ratio = 0
vm.dirty_ratio = 0
vm.dirty_background_bytes = 1610612736
vm.dirty_bytes = 4294967296
net.ipv4.ip_local_reserved_ports=65330
vm.min_free_kbytes = 488001
EOF
cat << EOF >> /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
EOF
Useradd gpadmin
cat << EOF >> /etc/hosts
192.168.18.243 master
192.168.18.244 segment1
EOF
su - gpadmin
touch /home/gpadmin/conf/hostlist
touch /home/gpadmin/conf/seg_hosts
cat << EOF >> /home/gpadmin/conf/hostlist
master
segment1
EOF
cat << EOF >> /home/gpadmin/conf/seg_hosts
segment1
EOF
source /home/gpadmin/greenplum/greenplum_path.sh
gpssh-exkeys -f /home/gpadmin/conf/hostlist
评论