18、linux-centos6、7对比之时间

1.centos6 时间,时区,语言

时间同步:ntpq -p
修改时间同步:/etc/sysconfig/clock
修改语言:/etc/sysconfig/i18n

2.centos7 时间,时区,语言

时间同步:chronyc sources
查询时间:timedatectl
修改时间:timedatectl set-timezone Asia/Shanghai
查询语言:localectl
修改语言:localctl set-locale LANG=zh_CN.UTF-8

猜你喜欢

转载自blog.csdn.net/weixin_43443216/article/details/107513206
今日推荐