21
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7のlocaleを日本にする

Last updated at Posted at 2017-07-29

CentOS7の設定をやった時に調べたのでメモ

環境

OS・ミドルウェア バージョン
OS CentOS Linux release 7.3.1611 (Core)
VirtualBox 5.1.26
Vagrant 1.9.7

手順

  1. 現在の設定を確認する

    # localectl
       System Locale: LANG=en_US.UTF-8
           VC Keymap: us
          X11 Layout: n/a
    #date
    Sat Jul 29 14:19:28 UTC 2017
    
  2. 日本語のロケールがあるかどうか確認する

    # localectl list-locales | grep -i ja
    
  3. 日本語のロケールがない場合は以下を実行する

    # yum -y reinstall glibc-common
    
  4. 日本のlocaleを設定する

    # localectl set-locale LANG=ja_JP.UTF-8
    # source /etc/locale.conf
    
  5. 変更されたことを確認する

    # localectl
       System Locale: LANG=ja_JP.UTF-8
           VC Keymap: us
          X11 Layout: n/a
    
21
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?