vps时间设置 发表于 2021-05-18 设置时区为北京时间 12rm -rf /etc/localtimeln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 设置ntp同步时间debian 12apt-get updateapt-get install ntp ntpdate -y centos 1yum install ntp ntpdate -y 123service ntpd stop #停止ntp服务ntpdate us.pool.ntp.org #同步ntp时间service ntpd start #启动ntp服务 完成