我是靠谱客的博主 欣慰大米,这篇文章主要介绍centos7 查看启动ntp服务命令,现在分享给大家,希望可以做个参考。

1. 查看ntp服务命令:

[root@node1 ~]# systemctl status ntpd
* ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

可以看到状态为:inactive,也就是没有启动ntp服务

2. 启动ntp服务命令:

[root@node1 ~]# systemctl start ntpd

确认是否启动:

[root@node1 ~]# systemctl status ntpd
* ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: active (running) since 一 2017-10-16 17:12:05 CST; 2s ago
  Process: 8925 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 8926 (ntpd)
   CGroup: /system.slice/ntpd.service
           `-8926 /usr/sbin/ntpd -u ntp:ntp -g

10月 16 17:12:05 node1 ntpd[8926]: ntp_

最后

以上就是欣慰大米最近收集整理的关于centos7 查看启动ntp服务命令的全部内容,更多相关centos7内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部