centos7 查看启动ntp服务命令
标签(空格分隔): centos7 系统
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_io: estimated max descriptors: 1024,...16
10月 16 17:12:05 node1 ntpd[8926]: Listen and drop on 0 v4wildcard 0.0.0.0 ...23
10月 16 17:12:05 node1 ntpd[8926]: Listen and drop on 1 v6wildcard :: UDP 123
10月 16 17:12:05 node1 ntpd[8926]: Listen normally on 2 lo 127.0.0.1 UDP 123
10月 16 17:12:05 node1 ntpd[8926]: Listen normally on 3 ens33 192.168.197.1...23
10月 16 17:12:05 node1 ntpd[8926]: Listen normally on 4 lo ::1 UDP 123
10月 16 17:12:05 node1 ntpd[8926]: Listen normally on 5 ens33 fe80::522e:70...23
10月 16 17:12:05 node1 ntpd[8926]: Listening on routing socket on fd #22 fo...es
10月 16 17:12:05 node1 ntpd[8926]: 0.0.0.0 c016 06 restart
10月 16 17:12:05 node1 ntpd[8926]: 0.0.0.0 c012 02 freq_set kernel 14.727 PPM
Hint: Some lines were ellipsized, use -l to show in full.
可以看到此时ntp状态为active,也就是成功启动了ntp服务
3. 设置开启自启动ntp服务:
[root@node1 ~]# systemctl enable ntpd
centos7 查看启动ntp服务命令的更多相关文章
- Windows下启动各服务命令
1. gpedit.msc-----组策略 2. nslookup-------IP地址侦测器 3. explorer-------打开资源管理器 4. logoff---------注销命令 5. ...
- linux下启动oracle服务命令
以redflag(redhat /centos)linux下的 oracle 10g 为例: 如果oracle安装和配置都没有问题的话: 依次执行以下代码即可启动oracle服务. #su - ora ...
- CentOS7 开机启动脚本与命令后台运行
一.& 在 Linux 命令后加上 & 可以在后台运行 二.nohup 对 SIGHUP 信号免疫,对 SIGINT 信号不免疫,可用 shopt | grep hup 查看. 当关 ...
- CentOS7查看网络的相关命令
转载自:https://www.linuxidc.com/Linux/2015-07/119555.htm 1.切换到超级用户 [Oscar@localhost 桌面]$ su root 2.查询可用 ...
- 关闭和启动adb服务命令
在运行中输入 关闭——adb kill-server 重启——adb start-server
- centos7查看启动的进程并杀死
https://www.cnblogs.com/aipiaoborensheng/p/7676364.html ps -a -H kill -9 pid
- CentOS7系列--2.1CentOS7中安装配置NTP服务
CentOS7安装配置NTP服务 NTP服务是时间同步服务 1. 安装NTPd [root@centos7 ~]# yum install -y ntp [jack@centos7 ~]$ vi /e ...
- CentOS学习之NTP服务配置详解
详解centos7下ntp服务配置 一.ntp服务是什么 1.定义 NTP是网络时间协议(Network Time Protocol),它是用来同步网络中各个计算机的时间的协议. 2.发展 首次记载在 ...
- 使用阿里云镜像站NTP服务搭建NTP服务器(基于CentOS 7系统)
镜像下载.域名解析.时间同步请点击 阿里云开源镜像站 一.NTP服务器介绍 网络时间协议(Network Time Protocol,NTP)服务器,也就是日常所说的NTP服务器,用来提供同步时间服务 ...
随机推荐
- spring属性注入方式
一.使用有参构造注入属性 配置文件 constructor-arg标签是需注入属性的名字 User类 生成了User的有参构造函数 测试类 结果 打印出了name属性的值 二.使用set方法注入属性 ...
- VOFM 例程
SAP ERP 实施中,经常会用到例程开发(TCODE:VOFM).这个开发目前我用到的是影响SD和MM的定价过程.创建例程需要ACCESS KEY,这个可以通过申请得到,创建后例程会被包含在一个RE ...
- matlab常用的一些程序和功能
~ 去除误匹配算法(matlab) 1.ransac算法 [tform,matchedPoints1,matchedPoints2] = ... estimateGeometricTransfo ...
- 【leetcode刷题笔记】Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrin ...
- zabbix实现mysql数据库的监控(三)
上面一章“zabbix实现mysql数据库的监控(二)”使用MPM来监控mysql,但是遇到安装问题始终解决不了,这里改用percona-monitoring-plugins进行zabbxi上监控my ...
- runtime 实现方法交换 viewwillappear方法
1.新建分类 #import "UIViewController+swizzling.h"#import <objc/runtime.h> @implementatio ...
- Hive- 表
在hive中表的类型:管理表和托管表(外部表). 内部表也称之为MANAGER_TABLE,默认存储在/user/hive/warehouse下,也可以通过location指定:删除表时,会删除表的数 ...
- Sobel边缘检测
Sobel算子:[-1 0 1 -2 0 2 -1 0 1] 用此算子与原图像做卷积,可以检测出垂直方向的边缘.算子作用在图像的第二列,结果是:200,200,200:作用在第三列,结果是 ...
- 关于ios::sync_with_stdio(false);和 cin.tie(0)加速c++输入输出流
原文地址:http://www.hankcs.com/program/cpp/cin-tie-with-sync_with_stdio-acceleration-input-and-output.ht ...
- flex与js交互浅析
1.flex调用js方法 调用方法例如:ExternalInterface.call("UploadComplete",oldName,uidName,_dir+"/&q ...