YY.K发表于
2016-04-15 10:11:00
wget http://down.kvm.la/shell/bash_profile -O /root/.bash_profile
wget http://down.kvm.la/shell/cron.sh -O /root/cron.sh
wget http://down.kvm.la/conf/ve-vswap-solus.conf-sample -O /etc/vz/conf/ve-vswap-solus.conf-sample
wget http://down.kvm.la/conf/sysctl.conf -O /etc/sysctl.conf
rpm -ivh http://download4.fedora.redhat.com/pub/epel/epel-release-latest-6.noarch.rpm
yum install denyhosts rsync iftop tcpdump ploop -y
chkconfig --add denyhosts
chkconfig --level 35 denyhosts on
service denyhosts restart
wget http://down.kvm.la/conf/ve-vswap-solus.conf-sample -O /etc/vz/conf/ve-vswap-solus.conf-sample
wget http://down.kvm.la/conf/sysctl.conf -O /etc/sysctl.conf; sysctl -p
yum install fuse-sshfs fuse-devel -y
cat>/etc/sysconfig/modules/openvz.modules<<EOF
#!/bin/sh
/sbin/modprobe --first-time fuse
/sbin/modprobe ppp-compress-18
/sbin/modprobe pppoatm
/sbin/modprobe ppp_generic
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe
/sbin/modprobe pppol2tp
/sbin/modprobe xfrm_ipcomp
/sbin/modprobe tun
/sbin/modprobe nfs
/sbin/modprobe af_key
/sbin/modprobe esp4
/sbin/modprobe esp6
/sbin/modprobe ah4
/sbin/modprobe ah6
/sbin/modprobe xfrm4_tunnel
/sbin/modprobe xfrm4_mode_tunnel
/sbin/modprobe xfrm4_mode_transport
/sbin/modprobe xfrm4_mode_beet
/sbin/modprobe xfrm6_mode_tunnel
/sbin/modprobe xfrm6_mode_transport
/sbin/modprobe xfrm6_mode_beet
/sbin/modprobe xfrm6_mode_ro
/sbin/modprobe ipcomp6
/sbin/modprobe ipcomp
/sbin/modprobe xt_state
/sbin/modprobe ipip
/sbin/modprobe ip_gre
/sbin/modprobe tcp_hybla
/sbin/modprobe tcp_htcp
/sbin/modprobe vzcpt
EOF
chmod 755 /etc/sysconfig/modules/openvz.modules
/etc/sysconfig/modules/openvz.modules