打开宝塔以后,发现很多乱码,中文都无法显示。如图:
这种情况,大多数是由于系统的字库不足导致的。 需要进行一些调整。
CentOS、RHEL 系统:
vi /etc/locale.conf
LANG="en_US.UTF-8"
就可以解决了。
Ubuntu、Debian 系统,稍微麻烦一些,如下操作:
apt install locales
dpkg-reconfigure locales
然后在语言选择界面通过键盘【上】【下】箭头移动,按【空格】勾选如下语言:
en_US.UTF8
zh_CN GB2312
zh_CN GBK GBK
zh_CN UTF-8 UTF-8
勾选后按键盘【Tab】切换到 OK ,再按键盘【回车】确认。
然后在选择默认语言这个界面通过【上】【下】箭头选择 en_US.UTF8 然后按【Tab】切换到 OK 再按【回车】确认。
vi /etc/default/locale
LANG=en_US.UTF-8
然后输入 reboot 重启系统即可!
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/linux/linux_chinese_messy_code.html
本文最后更新于2022年05月14日 ,已超过952天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@Doug Shume it's ok for me , you can post here.
Saved as a favorite, I like your website!
If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.
Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!
Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.
Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.
zh.us.to 有效
kms.03k.org 有效
kms.chinancce.com
kms.shuax.com 有效
kms.dwhd.org 有效
kms.luody.info 有效
kms.digiboy.ir 有效
kms.lotro.cc 有效
www.zgbs.cc 有效
cy2617.jios.org 有效
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊