centosÔõôÄð³ÉÖÐÎÄ
centos ÔõÑùÇл»ÎªÖÐÎÄ
ΪÁ˽« CentOS ϵͳÇл»ÎªÖÐÎÄ£¬ÄúÐèÒªÖ´ÐÐÒÔÏ°취£º
1. ×°ÖÃÓïÑÔ°ü
ʹÓÃÒÔÏÂÏÂÁî×°ÖÃÖÐÎÄÓïÑÔ°ü£º
yum install centos-release-scl yum install centos-language-pack-zh-CN
µÇ¼ºó¸´ÖÆ
2. ÆôÓÃÖÐÎÄÓïÑÔ
ÉèÖÃϵͳÓïÑÔΪÖÐÎÄ£º
localectl set-locale LANG=zh_CN.UTF-8
µÇ¼ºó¸´ÖÆ
3. ¸üÐÂÉèÖÃÎļþ
±à¼ÒÔÏÂÉèÖÃÎļþ£¬½«ÓïÑÔÉèÖÃΪÖÐÎÄ£º
/etc/default/locale£º½« LANG ÉèÖÃΪ zh_CN.UTF-8
/etc/sysconfig/i18n£º½« LANG ÉèÖÃΪ zh_CN.UTF-8
4. ÌìÉúÇøÓòÉèÖÃ
ÌìÉúÇøÓòÉèÖãº
locale-gen zh_CN.UTF-8
µÇ¼ºó¸´ÖÆ
5. ÖØÆôϵͳ
ÖØÆôϵͳÒÔÓ¦Óøü¸Ä£º
reboot
µÇ¼ºó¸´ÖÆ
6. ÑéÖ¤¸ü¸Ä
µÇ¼ϵͳºó£¬Ê¹ÓÃÒÔÏÂÏÂÁîÑéÖ¤ÓïÑÔÊÇ·ñÒÑÇл»ÎªÖÐÎÄ£º
echo $LANG
µÇ¼ºó¸´ÖÆ
Êä³öӦΪ zh_CN.UTF-8¡£
ÒÔÉϾÍÊÇcentosÔõôÄð³ÉÖÐÎĵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£