Archive for the ‘Linux’ Category

0123 | ติดตั้ง OpenVZ บน CentOS 6.0 64bit

Tuesday, July 12th, 2011 Posted in Linux | No Comments »

คู่มือก๊อปวางอีกแล้วครับท่าน ปรับปรุงจาก CentOS 5.0 นิดหน่อย เนื่องจากชื่อ package มันไม่ตรงกัน
วิธีลงไม่รวมถึงการ optimize ระบบ และการตั้งค่า vps นะครับ

wget -O /etc/yum.repos.d/openvz.repo http://icez.net/files/openvz-el6.repo
rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum -y install vzkernel.x86_64 vzkernel-devel.x86_64 vzkernel-headers.x86_64 perl.x86_64
perl -pi -e "s/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g" /etc/sysctl.conf
echo "net.ipv4.conf.default.proxy_arp = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.send_redirects = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.send_redirects = 0" >> /etc/sysctl.conf
chkconfig vz on
init 6

ที่เหลือก็… download template มาลง เอาไว้ใน folder /vz/template/cache
http://wiki.openvz.org/Download/template/precreated
http://download.openvz.org/template/precreated/

Tags: , , ,

0117 | ลง Flashcache ใน OpenVZ

Tuesday, February 1st, 2011 Posted in Linux | 2 Comments »

สารพัดวิชามารกันเลยทีเดียว กว่าจะลงได้ เล่นเอาแทบตาย
อันที่จริงมันนิดเดียวเองครับ แค่ไปเอา source มา

ก่อนอื่น check ก่อนเลยว่าใช้ kernel ตัวไหนอยู่ด้วยคำสั่ง

uname -r

ตัวอย่างด้านล่างสำหรับ kernel ovzkernel-xen ovzkernel-2.6.18-274.el5.028stab093.2 เท่านั้นนะครับ
หาก version เปลี่ยนก็ต้องไปหา source tree ใหม่ด้วย ที่ http://ftp.openvz.org/kernel/branches/rhel5-2.6.18/current/

Read the rest of this entry »