Changes between Initial Version and Version 1 of jazz/13-08-29


Ignore:
Timestamp:
Aug 29, 2013, 5:19:27 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/13-08-29

    v1 v1  
     1= 2013-08-29 =
     2
     3== OpenVZ &  ovz-web-panel ==
     4
     5 * [參考]
     6 * [參考] http://code.google.com/p/ovz-web-panel/
     7
     8=== 安裝 OpenVZ ===
     9
     10 * Ubuntu 目前沒有套件,Debian 才有。官方只有提供 RPM 套件。
     11{{{
     12apt-get -y install linux-image-openvz-686 vzctl vzquota vzdump
     13ln -s /var/lib/vz /vz
     14cat >> /etc/sysctl.conf << EOF
     15net.ipv4.conf.all.rp_filter=1
     16net.ipv4.icmp_echo_ignore_broadcasts=1
     17net.ipv4.conf.default.forwarding=1
     18net.ipv4.conf.default.proxy_arp = 0
     19net.ipv4.ip_forward=1
     20kernel.sysrq = 1
     21net.ipv4.conf.default.send_redirects = 1
     22net.ipv4.conf.all.send_redirects = 0
     23net.ipv4.conf.eth0.proxy_arp=1
     24EOF
     25sysctl -p
     26cat /etc/vz/vz.conf | grep NEIGHBOUR_DEVS
     27sed -i 's#NEIGHBOUR_DEVS=detect#NEIGHBOUR_DEVS=all#' /etc/vz/vz.conf
     28cat /etc/vz/vz.conf | grep NEIGHBOUR_DEVS
     29reboot
     30}}}