LINUX server common setup for ChinaCache ...
vi /etc/sysconfig/hostname
reboot
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate time.nist.gov
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm --nomd5 --force --nodeps
yum clean dbcache
yum install ftp wget ntpdate
chkconfig ntpdate on
chkconfig crond on
crontab -e
0 2 * * * ntpdate time.nist.gov
mkdir -p /data/webroot/lays/
adduser -d /data/webroot/lays/ -g daemon webuser
passwd webuser
chown -hR webuser:daemon /data/webroot/
chown -cR 777 /data/webroot
chcon -R -h -t httpd_sys_content_t /data/
sudo -P setsebool allow_ftpd_full_access on