Fedora 安装 NTP

一、列出ntp软件包

  yum list ntp

二、安装ntp软件包

  yum install ntp

三、修改配置文件

  vi /etc/ntp.conf

四、启动ntp

  service ntpd start

五、关闭ntp

  service ntpd stop

六、查看状态

  ntpq -p

七、设置开机启动

  1. 获取chkconfig 命令的帮助

      chkconfig --help

八、查看123端口是否打开

  netstat -tlunp

九、查看是否和ntp服务器连接上

  ntpstat

  

转载于:https://www.cnblogs.com/liuming8080/p/3901818.html

猜你喜欢

转载自blog.csdn.net/weixin_34095889/article/details/93307006