CentOS7版本安装ntp服务
2016-04-19 17:12
567 查看
centos从7.0以后,ntp做成了一个服务,也就是说可以运行一个守护进程来自动同步时间,而不用像5和6的版本一样把命令写入计划任务中,这个在做集群服务的时候非常有帮助。
安装ntp
配置文件/etc/ntp.conf
启动ntpd服务
OK,时间NTP服务已经安装完毕。
安装ntp
[root@centos66 ~]# yum install ntp ntpdate -y
配置文件/etc/ntp.conf
[root@centos66 ~]# vim /etc/ntp.conf # server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org server 3.asia.pool.ntp.org #保存退出
启动ntpd服务
[root@centos66 ~]# systemctl start ntpd [root@centos66 ~]# systemctl enable ntpd
OK,时间NTP服务已经安装完毕。
相关文章推荐
- Linux socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- SUSE 11 & RedHat 6.1 & HP-UX B.11.31 NTP时间同步服务实施案例集锦
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程