Remember to modify the Linux system language

Source: Internet
Author: User

Objective:

Before has been installed system with the Chinese, installed a English to play, the result of writing python when the tragedy, can not input Chinese, can not display, so think can be changed to Chinese, the following is the steps

[Email protected] python]# locale-a|grep-i Zh_cn.utf8//view current locale

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/31/wKioL1eIT8SCzT3kAAAL7-iKGo8879.png "title=" Sogou 20160715105055.png "alt=" Wkiol1eit8sczt3kaaal7-ikgo8879.png "/>

[email protected] python]# Yum grouplist | Grep-i Chinese//See if the warehouse has a Chinese bag

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/31/wKioL1eIT9OQeWX2AAAN6fEnDEk680.png "title=" Sogou 20160715105120.png "alt=" Wkiol1eit9oqewx2aaan6fendek680.png "/>

[[email protected] python]# yum groupinstall chinese-support//install Chinese Language Pack

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/84/31/wKiom1eIUCXSKdZnAAAKQIv-RvQ834.png "title=" Sogou 20160715105309.png "alt=" Wkiom1eiucxskdznaaakqiv-rvq834.png "/>
[[email protected] python]# echo $LANG//view current locale

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/31/wKioL1eIUHTBeob1AAAJho5s2Xg755.png "title=" Sogou 20160715105430.png "alt=" Wkiol1eiuhtbeob1aaajho5s2xg755.png "/>

[[email protected] python]# Lang=zh_cn.utf8//temporary setting of Chinese environment
[[email protected] python]# echo $LANG//view current locale

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/31/wKioL1eIUl6y9Pz1AAAQyQtgdiQ292.png "title=" Sogou 20160715105640.png "alt=" Wkiol1eiul6y9pz1aaaqyqtgdiq292.png "/>

[[email protected] python]# vim/etc/sysconfig/i18n//permanently set Chinese environment

Lang= "Zh_cn.utf8"

After this step, it has been set to a Chinese environment





This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1826623

Remember to modify the Linux system language

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.