# 전체업데이트 실행 (2시간정도 소요)
yum update -y
# APM툴스 설치
/root/bin/apmtools
# 젠드설치
wget http://downloads.phpchina.com/zend/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
tar xvfz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.3-linux-glibc23-i386
./install.sh
cd ..
rm -Rf ZendOptimizer-3.3.3-linux-glibc23-i386*
# SSU 실행
vi /conf/su_util.cfg
# home_dirs = /home /usr /var /etc /lib
# web_dir = /home/ssu/system_check
useradd ssu
passwd ssu
chmod 707 /home/ssu
system_check_init --all
system_check
#서버시간동기화
crontab -e
00 01 * * * rdate -s time.bora.net && clock -w
00 03 * * * su - root -c '/root/bin/su_backup --local' >& /dev/null
00 07 * * * su - root -c '/root/bin/system_check' >& /dev/null
*/5 * * * * su - root -c '/root/bin/system_test >& /dev/null'
/etc/init.d/crond restart
#아파치설정 변경
vi /etc/httpd.conf
# ServerName 211.203.170.86
# UserDir /home/*
<Directory /home/*>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
# NameVirtualHost 211.203.170.86
<VirtualHost 211.203.170.86>
DocumentRoot /home
ServerName *
</VirtualHost>
/etc/init.d/httpd restart
#vsftp설정
/etc/vsftpd/vsftpd.conf
# chroot_local_user=YES
/etc/init.d/vsftpd restart
위의 내용은 지극히 개인적이나 업데이트 부분을 해주는게 좋다.
댓글 없음:
댓글 쓰기