, install locales
apt-get install locales
2. Set language options
dpkg-reconfigure locales
Choose from the following four options:
zh_CN GB2312
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
en_US.UTF-8 UTF-8
Enter and select zh_CN.UTF-8
3. View language settings
locale
Make sure LANG=zh_CN.UTF-8
If not, execute export LANG=zh_CN.UTF-8 to set the environment variable (temporary setting)
So far, you're done.
————————————————
Copyright statement: This article is the original article of CSDN blogger "Blue Green ~ Spinach", following the CC 4.0 BY-SA copyright agreement, please attach the original source link for reprinting and this statement.
Original link: https://blog.csdn.net/bocai_xiaodaidai/article/details/99639058