linux修改时区为东八时区,北京时间,上海时间
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/Shanghai" > /etc/timezone
CentOS
sudo yum install -y ntp
sudo systemctl enable ntpd
sudo ntpdate -q 0.rhel.pool.ntp.org
sudo systemctl restart ntpd
Debian/Ubuntu
sudo apt-get install -y ntp
sudo service ntp restart
版权属于:疯狂的猿猴
本文链接:https://www.592850.com/archives/992.html
本站文章采用 知识共享署名4.0 国际许可协议 进行许可,请在转载时注明出处及本声明!