ntp时间同步
来源:互联网 发布:家庭音响系统知乎 编辑:程序博客网 时间:2024/06/03 03:31
一、什么是ntp?
NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议。
参考:https://baike.baidu.com/item/NTP
二、Linux下ntpdate时间同步
命令:
ntpdate time1.aliyun.com
参考:
1、Linux下ntpdate时间同步 http://blog.csdn.net/achang21/article/details/46693545
2、https://www.zhihu.com/question/30252609/answer/102415171
备注:
1、修改linux时区(如果对应的时区不对,执行ntpdate命令后,时间依然不正确)
tzselect执行完tzselect命令选择时区后,时区并没有更改,只是在命令最后提示你可以执行TZ='Asia/Shanghai'; export TZ 并将这行命令添加到.profile中,然后退出并重新登录。
参考:https://jingyan.baidu.com/article/fa4125acb7328628ac70920e.html
2、如何修改linux环境变量(永久生效)
可以修改下面两个文件中的任何一个:
1 /etc/profile
2 .bash_profile
其中,/etc/profile是全局的环境变量,对所有用户生效,而.bash_profile只对当前用户启作用。
.bash_profile该配置文件在用户每次登录系统时被读取,里面的所有 命令都会被bash执行。
参考:https://jingyan.baidu.com/article/ea24bc399a73bcda62b33104.html
备注:ntp服务重启命令
service ntpd start
阅读全文
0 0
- ntp 同步系统时间
- NTP 时间同步
- linux ntp同步时间
- linux ntp时间同步
- NTP时间同步
- NTP时间同步配置
- linux ntp时间同步
- Ntp时间同步
- NTP时间同步
- RAC ntp时间同步
- 时间同步服务器NTP
- linux ntp时间同步
- NTP 网络时间同步
- NTP时间同步设置
- android NTP时间同步
- ntp时间同步服务器
- ubuntu ntp 时间同步
- NTP 时间同步 配置
- 06.类的加载器二(创建自己的类加载器)
- 在浏览器输入网址时发生了什么
- 如何更好处理数据仓库服务必然需要云数据库HybridDBforPostgreSQL
- 2017/10/7模拟赛总结
- git 常用命令
- ntp时间同步
- 接口测试之基于LoadRunner的一个简单示例
- RESTful API
- 可以在线C++编译的工具站点
- Linux多台服务器间SSH免密码登录配置及利用scp 两个服务器文件传输和crontab定时任务的设置
- windows上设置自动删除oracle归档日志
- Java 在数据库中生成一年的假日与工作日信息
- 谱聚类(spectral clustering)原理+算法流程--总结
- oracle错误编码大全!