Today, when I helped the company configure Linux servers, my colleagues asked me that the RHEL of the original Enlish version ran one of their Web projects using Tomcat, and the Chinese currency symbols all showed the dollar symbols, so I plan to install Chinese characters this time. When I select a language, I am prompted: select the language to install the display; I personally think this sentence means the language displayed during the installation process, and the English is selected, but the "Asia/Chongqing" is selected when the time zone is selected ", as a result, the installation of Linux is still in English. As soon as my colleague releases the project
Today, when I helped the company configure Linux servers, my colleagues asked me that the RHEL of the original Enlish version ran one of their Web projects using Tomcat, and the Chinese currency symbols all showed the dollar symbols, so I plan to install Chinese characters this time. When I select a language, I am prompted: select the language to install the display; I personally think this sentence means the language displayed during the installation process, and the English is selected, but the "Asia/Chongqing" is selected when the time zone is selected ", as a result, after the installation is complete, Linux is still in English. When my colleagues release the project, the problem persists. Therefore, baidu modifies the operating system language as follows, fortunately, Linux does not need to change a language to the same language as windows to install a Language Pack, but only needs to modify a file, so the content of the/etc/sysconf/i18n file is modified as follows, after the restart, the colleague is releasing the project and the solution is successful!
How to change Chinese:
No matter what the original file content is, you only need to change it to the following to display Chinese characters.
LANG = "zh_CN.UTF-8"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh"
SYSFONT = "latarcyrheb-sun16"
Font optimization (baidu has never been used ):
Solution: Modify environment variables related to character sets. Put the content in the/etc/sysconf/i18n file from the original:
Replace:
LANG = "zh_CN"
SUPPORTED = "Maid: zh_CN.UTF-8: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"
In fact, three system environment variables are working. You can also use the i18n file of RHEL3:
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh"
SYSFONT = "lat0-sun16"
SYSFONTTACH = "8859-15"
LANG = "zh_CN.GB2312"
SUPPORTED = "zh_CN.GB2312: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"
LANG = "zh_CN.GB18030"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh: en_US.UTF-8: en_US: en"
SYSFONT = "latarcyrheb-sun16"