更改centos服务器一周的第一天

更改centos服务器一周的第一天

我有一台 CentOS 6.8 服务器。我需要将一周的第一天更改为星期一。

我更新为:/usr/share/i18n/locales/en_US

week    7;19971130;7
    first_weekday   2
    first_workday   2

但我需要更新而不重新启动,

重要的是,我需要为所有用户进行更新。

其他数据:

# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


# locale day
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday

答案1

编辑文件后,您需要将其“编译”为程序实际使用的二进制存档。我不确定确切的命令,但根据localedef命令示例,它应该类似于

localedef -f UTF-8 -i us_US us_US.UTF-8

相关内容