启动错误日志:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MESSAGES = "zh_CN.UTF-8",
LANG = "zh_CN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
安装 localepurge 管理语言文件
sudo apt-get install localepurge
选择想要的语言,例如 en_US.UTF-8 和 zh_CN.UTF-8。
再次进行配置:
sudo dpkg-reconfigure localepurge
生成自己想要的语言
sudo locale-gen zh_CN.UTF-8 en_US.UTF-8
打印出当前的配置信息
locale
重启机器,重启服务即可!