Linux设置系统时间为中国时区并启用NTP同步 无名 2024-05-13 Linux 热度: °C 选项 默认字体 ✓ 楷体 ✓ 霞鹜文楷体 ✓ 小 ✓ 中 ✓ 大 ✓ 阅读模式 编辑 1.安装ntp服务Debianapt-get install ntp -yCentosyum install ntp2.开机启动服务systemctl enable ntpd3.启动服务systemctl start ntpd4.更改时区timedatectl set-timezone Asia/Shanghai5.启用ntp同步timedatectl set-ntp yes6.重启查看时间reboot查看时间timedatectl
评论区(暂无评论)