|
|
| |||||||
| Site & Server Administration Server Yönetimi hakkında, .htaccess, Apache configuration ve log analiz, güvenlik |
| |
|
| | | LinkBack | Seçenekler |
| |||
| Merhaba ; Elim döndüğünce size OpenVZ kurulumunu anlatacağım. Öncelikle putty ile ssh 'ye bağlanıyoruz ,sonra aşağıdaki komutları ssh üzerinden giriniz ; Yum paketlerimizi indiriyoruz… ; cd /etc/yum.repos.dYum paketlerimizi bi araştıralım ; yum search ovzkernelAşağıdaki gibi çıktılar alacaksınız… ; … ovzkernel.i686 : Virtuozzo Linux kernel (the core of the Linux operating system) ovzkernel.x86_64 : Virtuozzo Linux kernel (the core of the Linux operating system) ovzkernel-PAE.i686 : The Linux kernel compiled for PAE capable machines. ovzkernel-PAE-debug.i686 : The Linux PAE kernel compiled with debug config ovzkernel-PAE-devel.i686 : Development package for building kernel modules to match the PAE kernel. ovzkernel-debug.i686 : The Linux kernel compiled with debug config ovzkernel-debug.x86_64 : The Linux kernel compiled with debug config ovzkernel-devel.i686 : Development package for building kernel modules to match the kernel. ovzkernel-devel.x86_64 : Development package for building kernel modules to match the kernel. ovzkernel-ent.i686 : The Linux kernel compiled for huge mem capable machines. ovzkernel-ent-debug.i686 : The Linux ent kernel compiled with debug config ovzkernel-ent-devel.i686 : Development package for building kernel modules to match the ent kernel. ovzkernel-xen.i686 : The Linux kernel compiled for Xen VM operations ovzkernel-xen.x86_64 : The Linux kernel compiled for Xen VM operations ovzkernel-xen-devel.i686 : Development package for building kernel modules to match the kernel. ovzkernel-xen-devel.x86_64 : Development package for building kernel modules to match the kernel. Evet artık yükleyebiliriz ; yum install ovzkernelKomutundan sonra otomatik kurulum başlayacaktır. NOT : Bu Kurulum ve Ayarlamalar Sadece CentOS İÇİNDİR !!! Şimdi bir kernel ayarlarından ufak bir yer değiştireceğiz ,önce dosyamızı açıyoruz ; pico /boot/grub/menu.lstŞimdi bu dosyanın içinden aşağıdaki kısımda verdiğim yeri "0" yapıyoruz.. ; # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS OpenVZ (2.6.18-238.5.1.el5.028stab085.5) root (hd0,0) kernel /vmlinuz-2.6.18-238.5.1.el5.028stab085.5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-238.5.1.el5.028stab085.5.img title CentOS (2.6.18-238.el5) root (hd0,0) kernel /vmlinuz-2.6.18-238.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-238.el5.img Şimdi OpenVZ User Tools ( Kullanıcı Arayüz ) Paketimizi yüklüyoruz ; yum install vzctl vzquotaEeee… Bi kurulum yaptıysak bir düzenleme kaçınılmaz : ) aşağıdaki dosyayı açıp , onun altında verdiğim şekle getiriyoruz ; pico /etc/sysctl.confBu dosyanın içeriğini aşağıdaki gibi yapın ; [...] net.ipv4.ip_forward = 1 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.conf.all.rp_filter = 1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf.default.forwarding=1 [...]Kaydedip çıkıyoruz ve aşağıdaki işleme geliyoruz, komutu ekrana giriniz ; sysctl -pŞimdi NEIGHBOUR_DEVS ayarımızı yapacağız ; pico /etc/vz/vz.confbu dosyayı açın ve aşağıdaki kısmı verdiğim şekilde düzeltin ; [...] NEIGHBOUR_DEVS=all [...]Selinux Ayarlarımızı Yapın pico /etc/sysconfig/selinux# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targetedBunu kaydediyoruz. Yeniden başlatıyoruz ; rebootVe makinamız açıldığında aşağıdaki komutu giriyoruz ; uname -rİşlemimiz bu kadar..
Alıntıdır... OpenVZ Kurulumu Centos [ Linux ]
__________________ Ücretsiz Sunucu Kurulumları ve Destek Sistemi |
![]() |
| Bookmarks |
| Seçenekler | |
| |