centos使用ntp保持时间同步
centos使用ntp保持时间同步
centos使用ntp保持时间同步
01 www.2cto.com
# 安装并启动ntp
02
yum install ntp
03
chkconfig ntpd on
04
ntpdate pool.ntp.org
05
service ntpd start
06
07
# 修改时区 www.2cto.com
08
ln -s /usr/share/zoneinfo/<Zone>/<SubZone> /etc/localtime
09
# 如果 /etc/localtime 已经存在,可以先删除
10
rm -rf /etc/localtime
11
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
评论暂时关闭