这里我就不截图了。
先说下背景,项目中遇到了点时间问题,需要配置ntp,操作系统是凝思的6.8,这个是个神奇的操作系统。和其他主流操作系统不一样。
这里ntpd,没有启动,而ntp是可以查到的,查询命令如下
systemctl ntp status
而ntpd是没有的
systemctl ntpd status
对于这个d,个人感觉应该是和mysqld中的d一样,也就是daemon。这个系统d没有运行,而普通的却运行了,感觉令人奇怪。
用凝思的操作系统要直接用ntp
也就是
systemctl ntp start
systemctl ntp stop
整个逻辑如下:
vim /etc/ntp.conf
添加:
server 192.168.1.100
这个填你ntp服务端的地址,这里我随便填写的
先关闭ntp
systemctl ntp stop
然后手动更新下:
update 192.168.1.100
然后再开启ntp
systemctl ntp start