SSH登陆linux服务器,显示

警告: setlocale: LC_CTYPE: 无法改变区域选项 (UTF-8)(warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory)。

解决方案
/etc/environment加入如下代码(如果没有该文件,需要新建):

LC_ALL=zh_CN.UTF_8
LANG=zh_CN.UTF_8  

下次SSH登陆的时候,就不会出现如上警告了。

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2021-10-25
  • 2021-10-20
  • 2021-04-07
  • 2021-10-23
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
相关资源
相似解决方案