https://blog.csdn.net/king_wang10086/article/details/76178711
[root@jenkins ~]# yum install -y ntpdate Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Package ntpdate-4.2.6p5-12.el6.centos.2.x86_64 already installed and latest version Nothing to do [root@jenkins ~]# ntpdate us.pool.ntp.org 27 Oct 18:13:48 ntpdate[2114]: adjust time server 65.223.27.156 offset 0.061012 sec
# 系統時間同步到硬件 hwclock --systohc #crontab 里面加個任務 每一個小時同步一次
先矯正操作系統時間,再考慮矯正jenkins時間。
jenkins日期時區不對的修改方法 - hua_ed的專欄 - CSDN博客
https://blog.csdn.net/hua_ed/article/details/50546853
How To Change Timezone on a CentOS 6 and 7 - nixCraft
https://www.cyberciti.biz/faq/centos-linux-6-7-changing-timezone-command-line/
linux里date命令顯示的時間和自己的不對。說是cst,什么意思,是時區問題嗎。_百度知道
https://zhidao.baidu.com/question/1958055516262164340.html
Linux系統時間的問題,date看到正常的顯示CST,時間不對的顯示EST - Linux系統管理-ChinaUnix.net
http://bbs.chinaunix.net/thread-4161470-1-1.html
docker - jenkins的時區設置問題 - SegmentFault 思否
https://segmentfault.com/q/1010000000749249