服务器时间校正相关命令

一、查看时间
# date -R

二、时区设置为UTC+8
首先执行 rm /etc/localtime
然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


三、同步时间服务器,校正时间
安装
debian: apt-get install ntpdate 
centos: yum install ntpdate


校正
ntpdate [ntp时间服务器地址]
以下,选一个即可
ntpdate time.nuri.net

ntpdate 0.asia.pool.ntp.org
ntpdate 1.asia.pool.ntp.org
ntpdate 2.asia.pool.ntp.org
ntpdate 3.asia.pool.ntp.org
ntpdate time.nist.gov

评论

此博客中的热门博文

搭建v2ray服务器双剑合一科学上网相关命令小结参考

V2ray基于Nginx的神器WS+TLS+伪装网站+CDN相关指令小结

新版Trojan官方脚本手動純净安裝科學上網服務器,配置TLS1.3+NGINX+偽站2019.12.29指令小結