• Linux 修改时区


    CentOS 7修改方式如下:
    # lsb_release -a  --查看系统版本-CentOS Linux release 7.6
    # timedatectl     --查看当前系统时区
    # ls -l /etc/localtime
    # timedatectl list-timezones | grep 'Dubai' 或者grep 'Shanghai'查看国内时期。这里我要修改为Dubai时间。
    Asia/Dubai
    # timedatectl set-timezone Asia/Dubai
    # ll /etc/localtime
    lrwxrwxrwx 1 root root 32 Apr 21 18:58 /etc/localtime -> ../usr/share/zoneinfo/Asia/Dubai
     
    You need to use the ln command to set timezone on Centos 6. Type the following commands as root:
    cp /etc/localtime /root/old.timezone
    rm /etc/localtime
    ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
    Verify new settings by typing the following two commands:
    date
    ls -l /etc/localtime
  • 相关阅读:
    javascript 冒泡
    js闭包
    loadmore & scroll
    viewport
    担当
    javascript pattern
    javascript function
    interview
    json and .net
    java sqlserver
  • 原文地址:https://www.cnblogs.com/rusking/p/10747682.html
Copyright © 2020-2023  润新知