CentOS 6.* 에서 서버 시간이 한국시간으로 변경 안될 때 조치 방법
#rm /etc/localtime
#ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
위 순서대로 해주시면 바로 변경됩니다.
[root@ip-172-31-26-26 Asia]# cat /etc/redhat-release
CentOS release 6.9 (Final)
[root@ip-172-31-26-26 Asia]#
#rm /etc/localtime
#ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
[root@ip-172-31-26-26 ~]# date
Fri Jul 21 09:11:06 UTC 2017
[root@ip-172-31-26-26 ~]#
[root@ip-172-31-26-26 ~]# cat /etc/localtime
TZif2UTCTZif2UTC
UTC0
[root@ip-172-31-26-26 ~]# cd /usr/share/zoneinfo/
[root@ip-172-31-26-26 zoneinfo]# ll
total 308
drwxr-xr-x. 2 root root 4096 May 1 18:49 Africa
drwxr-xr-x. 6 root root 4096 May 1 18:49 America
drwxr-xr-x. 2 root root 4096 May 1 18:49 Antarctica
drwxr-xr-x. 2 root root 4096 May 1 18:49 Arctic
drwxr-xr-x. 2 root root 4096 May 1 18:49 Asia
[root@ip-172-31-26-26 Asia]# rm /etc/localtime
rm: remove regular file `/etc/localtime'? y
[root@ip-172-31-26-26 Asia]# ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
[root@ip-172-31-26-26 Asia]# cat /etc/localtime
TZif2‹×ðx'æøÒC'ðâO)ðäk·øåhæbxçLèè/pxèçôhêRxêÇÖhëï4x째híÏxhð5qx £`!ng"ƒB#NIwˆ~~…˜
Œ
LMTKSTJSTKDTTZif2ÿÿÿÿ‹×ðxÿÿÿÿ'æøÿÿÿÿÒC'ðÿÿÿÿâO)ðÿÿÿÿäk·øÿÿÿÿåhÿÿÿÿæbxÿÿÿÿçLèÿÿÿÿè/pxÿÿÿÿèçôhÿÿÿÿêRxÿÿÿÿêÇÖhÿÿÿÿëï4xÿÿÿÿ째hÿÿÿÿíÏxÿÿÿÿhÿÿÿÿð5qx £`!ng"ƒB#NIwˆ~~…˜
Œ
LMTKSTJSTKDT
KST-9
[root@ip-172-31-26-26 Asia]#
[root@ip-172-31-26-26 Asia]#
[root@ip-172-31-26-26 Asia]# date
Fri Jul 21 18:13:46 KST 2017
[root@ip-172-31-26-26 Asia]#
0 Comments