美文网首页
linux 中文版切换为英文

linux 中文版切换为英文

作者: 慕知 | 来源:发表于2020-12-25 10:13 被阅读0次

在操作linux centos系统时,中文可能更能帮助我们理解,但是下面这种情况,难免会不顺手

[root@\ web01~/nginx-1.18.0]# yum -y grouplist
已加载插件:fastestmirror
没有安装组信息文件
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
可用的环境分组:
   最小安装
   基础设施服务器
   计算节点
   文件及打印服务器
   Cinnamon 桌面环境
   MATE 桌面环境
... ...


解决办法:

[root@\ web01~]# vim /etc/bashrc
export LC_ALL=en_US.UTF-8  #增加一行

[root@\ web01~]# source /etc/bashrc

再次执行最开始命令

[root@\ web01~/nginx-1.18.0]# yum -y grouplist
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Cinnamon Desktop
   MATE Desktop
   Basic Web Server
   Virtualization Host
   Server with GUI
.. ...

相关文章

网友评论

      本文标题:linux 中文版切换为英文

      本文链接:https://www.haomeiwen.com/subject/fusbnktx.html