【Debian】时间设置

摘要:
http://blog.linuxphp.org/archives/567/http://www.dedecms.com/knowledge/servers/linux-Bsd/2012/0819/8407.html安装一个小工具:ntpdate。您可以从ntp服务器同步时间。opt-geinstallntupdate和国家时间服务中心的ntp服务器。最新10.72.145.44

http://blog.linuxphp.org/archives/567/

http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0819/8407.html

 安装一个小工具:ntpdate,可以从ntp服务器同步时间.
apt-get install ntpdate

和国家授时中心的ntp服务器对时.
ntpdate 210.72.145.44
以上命令要在root账号下运行,ntpdate的对时速度很快

Debian英文版本在默认安装下,系统使用的是UTC时间(世界标准时间),与北京时间相差8小时 (北京时间比UTC时间快8小时), 下面调整设置系统时间为北京时间 1、修改时区 nano /etc/timezone #编辑文件,修改里面的内容为 Asia/Shanghai Asia/Shanghai

sudo dpkg-reconfigure tzdata

免责声明:文章转载自《【Debian】时间设置》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇MVC和MVVM超赞的CSS3动画下拉菜单下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Linux/CentOS系统同步网络时间的2种方法详解

方法一:用 ntpdate从时间服务器更新时间 如果系统没有 ntpdate 命令,可在线安装:       yum -y install ntp 安装完了之后,你不要做什么配置,也不需要,直接测试一下 [root@snsgou-pc src]# date 2015年 05月 20日 星期三 22:42:19CST [root@snsgou-pc src]...

docker pull报x509问题及docker启动失败问题解决

docker pull 报x509 最近通过docker pull拉取私有仓库镜像出错,具体报错(证书问题): docker pull 私有仓库ip/资源路径 x509: certificate has expired or is not yet valid 要注意。如果报509问题通常两方面原因: 1.系统时间不同步 2.证书问题,daemon.js...

centos7修改系统时间、时区

linux在安装的时候如果时区选择错误,可以在系统安装完成之后修改。系统时间运行着也会有偏差,需要对时间进行实时同步,方法如下: 1.用date命令查看系统当前时间,发现和北京时间有一定的误差 2.在系统联网的情况,修改时间最快的方法就是使用ntpdate命令自动同步网络服务器上的时间 yum install ntpdate -y 3. 设置系统时间与...

Centos7搭建日志服务器rsyslog+loganalyzer

、准备环境 更新时间 yum install ntp ntpdate systemctl start ntpd systemctl enable ntpd ntpdate ntp1.aliyun.com--------------------- 2.1 关闭防火墙: #systemctl stop firewalld2.2 将SELINUX设置为disab...

linux虚拟机时间同步

在搭建集群环境时,需要各个节点的主机时间是一致的,否则会出现问题,连接时间相应不对。要进行是时间同步。 使用yum 云进行下载时间同步服务。 下载之后如何验证: 如何进行具体的操作: 第一种:a、cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  b、ntpdate pool.ntp.org  如上...

linux同步windows的时间

找了很多的资料,都没有windows做时间服务,linux同步windows的时间的,最后自己找了一些软件,终于搞定了,写出来给大家共享,以免大家多走弯路   首先在http://www.meinberg.de/english/sw/index.htm   下载了一个windows的NTP服务程序:ntp4171.zip   windows 192.168...