服务器的时间配置
作者:互联网
安装ntpdate时间同步。
yum install ntpdate -y
在crontab -e 中配置自动同步时间:0 /usr/sbin/ntpdate -u ntp.api.bz
linux系统中CST与EDT时间转换以及系统时间与网络时间同步
为EDT的时间,而有些节点的时间是CST格式的时间。所以为了实现EDT转换成CST时间的命令如下:
mv /etc/localtime /etc/localtime.bak
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
使用上面的两条命令就可以实现从EDT时间变成CST的时间。
将系统时间写入硬件时间
hwclock --systohc
标签:ntpdate,配置,etc,时间,EDT,CST,服务器,localtime 来源: https://blog.51cto.com/14033037/2377408