32 bit системтэй үед
# cd ~
# wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2.tar.bz2
# tar vxjf Sublime\ Text\ 2.0.2.tar.bz2
# cd ~
# wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2.tar.bz2
# tar vxjf Sublime\ Text\ 2.0.2.tar.bz2
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
yum update
yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
yum install VirtualBox-4.2 VirtualBox суулгах
/etc/init.d/vboxdrv setup VirtualBox тохируулах
VirtualBox VirtualBox дуудах
yum -y install vsftpd
nano /etc/vsftpd/vsftpd.conf
# line 12: no болгож өөрчилнө
anonymous_enable=NO
# line 80,81: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 95, 96: uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES
# line 98: uncomment ( specify chroot list )
chroot_list_file=/etc/vsftpd/chroot_list
# line 104: uncomment
ls_recurse_enable=YES
# хамгийн сүүлийн мөрөнд нэмэх
# specify root directory ( if don't specify, users' home directory become FTP home directory)
local_root=public_html
# use localtime
use_localtime=YES
nano /etc/vsftpd/chroot_list
# хэрэглэгчийн home directory -н нэрийг бичнэ
username
/etc/rc.d/init.d/vsftpd start
Starting vsftpd for vsftpd: [ OK ]
chkconfig vsftpd on
service iptables stop
iptables: Flushing firewall rules: [OK]
iptables: Setting chains to policy ACCEPT: filter [OK]
iptables: Unloading iptables modules: [OK]
chkconfig iptables off
chkconfig ip6tables off
nano /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=permissive # өөрчлөх
# SELINUXTYPE= type of policy in use. Possible values are:
#targeted - Only targeted network daemons are protected.
#strict - Full SELinux protection.
SELINUXTYPE=targeted
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Preparing... ###################################### [100%]
1:rpmforge-release ###################################### [100%]
sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
Preparing... ###################################### [100%]
1:epel-release ###################################### [100%]
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo
nano /etc/httpd/conf/httpd.conf
# 990 дугаар мөр - доорх байдлаар өөрчилнө Name VirtualHost *:80
# сүүлийн мөр - доорх мөрийг нэмж оруулна
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName www.server.world
</VirtualHost>
# at the last lines: ( for virtual domain )
<VirtualHost *:80>
DocumentRoot /home/cent/public_html
ServerName www.virtual.host
ServerAdmin webmaster@virtual.host
ErrorLog logs/virtual.host-error_log
CustomLog logs/virtual.host-access_log combined
</VirtualHost>
service httpd rstart
yum -y install httpd
ердөө л энэ.