centos如何使用utc时间

1、将本地时间文件改名,做备份文件为localtime2
 mv /etc/localtime /etc/localtime2

2、将UTC文件和本地文件做连接
ln -s /usr/share/zoneinfo/UTC /etc/localtime

这个时候系统时间就是UTC时间了

如果想恢复为本地时间
1、删除本地时间文件
rm  /etc/localtime
2、将备份文件恢复问本地时间文件 
 mv /etc/localtime2 /etc/localtime

原文地址:https://www.cnblogs.com/itfat/p/7279728.html