两个步骤:
首先修改:/etc/locale.gen
:
root@debian:~# vim /etc/locale.gen
...
# en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8 // 开启美国英语
# en_ZA ISO-8859-1
...
# zh_CN.UTF-8 UTF-8 // 注释掉中文语系,然后保存并退出
root@debian:~# locale-gen
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
其次修改:/etc/default/locale
:
# File generated by update-locale
# 注释掉中文配置
# LANG="zh_CN.UTF-8"
# LANGUAGE="zh_CN:zh"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
最后重启!
root@debian:~# shutdown now
Remote side unexpectedly closed network connection
────────────────────────────────────────────────────────────
Session stopped
- Press <Return> to exit tab
- Press R to restart session
- Press S to save terminal output to file
系统启动的准备阶段还是有中文,但是打开之后就是英文了!