-->

DEVOPSZONES

  • Recent blogs

    How to Set timezone in RHEL 7 ?

    How to Set timezone in RHEL 7 ?

    1. Check the Current timezone.
    [root@ftpserver network-scripts]# date
    Mon Jan 23 19:58:11 CET 2017
    [root@ftpserver network-scripts]#

    2. List all timezone.
    [root@ftpserver network-scripts]# timedatectl list-timezones

    3. Set the timezone.
    [root@ftpserver network-scripts]# timedatectl set-timezone Asia/Shanghai
    [root@ftpserver network-scripts]#

    4. Check the timezone again.
    [root@ftpserver network-scripts]# date
    Tue Jan 24 03:02:04 CST 2017

    No comments