CentOS 7.2 时间同步与时区设置
生活随笔
收集整理的這篇文章主要介紹了
CentOS 7.2 时间同步与时区设置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
1、安裝 ntp 服務
shell> yum -y install ntp2、修改啟動參數,允許ntp服務在系統時間誤差較大時也能正常工作
shell> vi /etc/sysconfig/ntpd # 增加 -x 參數 OPTIONS="-g -x"3、啟動 ntp 服務
shell> systemctl start ntpd4、將 ntp 服務設為自啟動
shell> systemctl enable ntpd5、將系統時區改為上海時間 (亦即CST時區)
shell> ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime查看系統時間
shell> date 2016年 11月 18日 星期五 18:14:17 CST轉載于:https://my.oschina.net/mechanic/blog/790513
總結
以上是生活随笔為你收集整理的CentOS 7.2 时间同步与时区设置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 破除Odoo 菜单栏提示 99+
- 下一篇: LNMP(nginx php-fpm m