登录vps后,查看完信息,需要做一些初始设置,这样会用起来比较顺手。这个会慢慢完善,现在想把我想到的都整理出来。
一:卸载没有必要的软件
缺省系统装了apache,sendmail,需要把这两个卸载。
二:停止没有必要的服务
停止 mcstrans ,messagebus ,restorecond
chkconfig --list |grep 3:on |awk '{print $1}' |egrep -v 'sshd|crond|iptables|xinetd|network|syslog' |xargs -i{} chkconfig --level 3 {} off
三:升级到5.2
yum update
四:修改时区
root@srv /]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@srv /]# date -R
Wed, 25 Feb 2009 10:24:26 +0800
五:同步时间
yum -y install ntp
ntpdate cn.pool.ntp.org
# crontab -e
加入一行:
15 3 * * * /usr/sbin/ntpdate cn.pool.ntp.org > /dev/null 2>&1
六:修改默认字符集
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
export LC_ALL=zh_CN.utf8
echo "export LC_ALL=zh_CN.utf8">> /etc/profile
没有评论:
发表评论