Debian或者Ubuntu的系统
1.打开终端并以root用户身份登录。
2.运行命令:apt-get update
3.运行命令:apt-get install locales
4.运行命令:dpkg-reconfigure locales
5.选择zh_CN.UTF-8语言包并确认后回车。
6.运行命令:locale-gen
7.运行命令:update-locale LANG=zh_CN.UTF-8
8.重启系统,这样就可以安装对应的zh_CN.UTF-8语言包了

如果您的centos的系统,可以按照下面的方法添加中文包
1.首先,使用 root 用户登录到 CentOS 系统。
2.执行以下命令更新系统:yum update
3.安装中文语言包:yum install -y kde-l10n-Chinese
4.安装完成后,设置语言为中文:localectl set-locale LANG=zh_CN.UTF-8
5.重新启动系统:reboot
6.系统重启后,您可以通过以下命令检查中文语言包是否已安装:locale
如果您看到 zh_CN.UTF-8,则表示中文语言包已成功安装。

宝塔面板登录后台中文乱码
解决方案:进入文件夹 /www/server/panel/config,删除 local_menu.json(或者将local_menu.json重命名)。进入浏览器,刷新面板所在的网页,发现左侧菜单乱码的问题解决了,另外,你会发现local_menu.json的修改时间更新了

Last modification:December 19, 2025
If you think my article is useful to you, please feel free to appreciate