码迷,mamicode.com
首页 > 其他好文 > 详细

ssh登录locale报错:cannot change locale (zh_CN.UTF-8): No such file or directory

时间:2019-04-23 12:59:58      阅读:679      评论:0      收藏:0      [点我收藏+]

标签:last   director   utf-8   port   etl   set   direct   source   文件   

一、登录ssh报错:

Last login: Tue Apr 23 03:42:01 2019 from 172.28.146.109
-bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

二、编辑/etc/profile文件

vim /etc/profile

末尾加上:

export LC_ALL=C

生效

source /etc/profile

重新登录ssh即可。

ssh登录locale报错:cannot change locale (zh_CN.UTF-8): No such file or directory

标签:last   director   utf-8   port   etl   set   direct   source   文件   

原文地址:https://www.cnblogs.com/sky-cheng/p/10755537.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!