增加DNS服务器设置:
/etc/resolv.conf
nameserver 61.139.2.69
调整时区:
cp /etc/sysconfig/clock /etc/sysconfig/clock.bak
vi /etc/sysconfig/clock
ZONE="Asia/Shanghai"
cp /etc/localtime /etc/localtime.bak
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
service ntpd stop
ntpdate cn.pool.ntp.org
修改/etc/ntp.conf
server cn.pool.ntp.org
service ntpd start
chkconfig ntpd on
hwclock -w
时间: 2024-11-13 10:16:49