使用mac上面iterm2一段时间了,登陆服务器老是报如下warning
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
然后yum 安装的时候也会报LC_CTYPE环境变量的问题。于是抽空搜索了一下,找到了如下文章http://www.cyberciti.biz/faq/os-x-terminal-bash-warning-setlocale-lc_ctype-cannot-change-locale/

文章给出了3个解决方案:
1. ssh client关掉 Set locale environment variables on startup。
2. sudo vi ~/.ssh/config 将#SendEnv LANG LC_* 给注释掉。
3. localedef -i en_US -f UTF-8 en_US.UTF-8

前2个我都试过了,是ok 的,关键是理解why为什么。其实ssh 连的时候他会传递环境变量,这个变量如在服务器没有本地的环境,就会报这个错误。我确认了一下,其实就是$LC_CTYPE 这个环境变量导致的。

———————

本文来自 过去的我 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/aca_jingru/article/details/45557027?utm_source=copy

分类: 未分类

58 条评论

best CBD Oil · 2020年4月17日 下午5:33

I am extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the excellent quality writing, it’s rare to see a great blog like this one these days.|

cbd oil · 2020年4月23日 下午2:07

i bookmared your site

cbd lubricant · 2020年4月25日 下午5:50

Thanks for sharing

cbd oil for dogs · 2020年4月27日 上午4:38

i bookmared your site

naruto seksipelit · 2020年4月29日 上午1:22

lokking more uptdate

juegos sexuales embarazadas · 2020年4月29日 上午9:52

amazing article

sexuální hry na iphone · 2020年4月29日 下午6:09

nich blog

cbd oil · 2020年5月1日 上午10:28

amazing

buy cbd oil · 2020年5月2日 上午3:30

amazing article

Juul pods bulk · 2020年5月2日 上午11:11

i bookmared your site

buy country targeted youtube views · 2020年5月2日 下午10:41

Thanks for sharing

laweekly.com/a-list-of-the-5-best-cbd-lube-and-cbd-lubricants · 2020年5月9日 上午11:09

I like the helpful info you provide in your articles. I’ll bookmark your blog and check again here frequently. I’m quite certain I’ll learn plenty of new stuff right here! Good luck for the next!|

best cbd oil companies · 2020年5月10日 下午12:13

Hello! Would you mind if I share your blog with my zynga group? There’s a lot of folks that I think would really appreciate your content. Please let me know. Cheers|

https://medium.com/theymakedesign/best-web-design-companies-3ecc85b32071 · 2020年5月11日 上午9:52

Very shortly this web site will be famous among all blogging users, due to it’s pleasant posts|

web design companies · 2020年5月12日 上午6:48

Awesome blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely confused .. Any tips? Appreciate it!|

cbd cannabis oil uk · 2020年5月13日 上午10:53

cbd oil companies

Agency to Avoide · 2020年5月14日 上午12:59

whoah this weblog is fantastic i love reading your articles. Stay up the great work! You already know, lots of individuals are looking round for this info, you could help them greatly. |

Agency to avoide · 2020年5月14日 上午8:57

Thanks for sharing

Scam agency · 2020年5月14日 下午1:00

I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to create my own blog and would like to find out where u got this from. thanks|

best cbd oil for dogs · 2020年5月15日 上午1:49

Great article, totally what I was looking for.|

NSEO · 2020年5月15日 上午6:00

Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is wonderful, as well as the content!|

cbd oil · 2020年5月15日 上午10:14

i bookmared your site

cbd oil wales · 2020年5月16日 上午1:37

chck cbd oil

UK Adult Service · 2020年5月16日 上午3:34

Howdy! I simply would like to offer you a big thumbs up for the excellent info you have here on this post. I will be returning to your site for more soon.|

Ragdoll cat · 2020年5月16日 下午4:59

These are genuinely enormous ideas in regarding blogging. You have touched some fastidious points here. Any way keep up wrinting.|

cbd oil uk · 2020年5月16日 下午10:39

I quite like reading a post that can make men and women think. Also, many thanks for allowing for me to comment!|

cbd oil uk · 2020年5月17日 上午10:35

I constantly spent my half an hour to read this website’s content everyday along with a cup of coffee.|

cbd oil · 2020年5月17日 下午8:00

Excellent goods from you, man. I have take note your stuff previous to and you are just too wonderful. I really like what you’ve bought here, really like what you are stating and the way in which wherein you say it. You’re making it enjoyable and you still take care of to stay it smart. I can not wait to read much more from you. This is actually a great website.|

blessedcbd Scam · 2020年5月17日 下午8:56

cbd oil companies

cbd oil uk · 2020年5月17日 下午11:50

What’s Going down i am new to this, I stumbled upon this I have found It positively helpful and it has aided me out loads. I’m hoping to give a contribution & aid other customers like its helped me. Great job.|

best cbd oil · 2020年5月18日 下午12:52

Why viewers still make use of to read news papers when in this technological globe everything is accessible on net?|

gnula · 2020年5月18日 下午5:16

I absolutely love your blog and find most of your post’s to be just what I’m looking for. Does one offer guest writers to write content for you personally? I wouldn’t mind creating a post or elaborating on a number of the subjects you write related to here. Again, awesome web log!|

cbd oil · 2020年5月18日 下午9:11

If you would like to get a good deal from this post then you have to apply such strategies to your won web site.|

coin master today spin · 2020年5月19日 上午1:35

Hello There. I discovered your weblog the use of msn. This is a really smartly written article. I’ll make sure to bookmark it and come back to read more of your helpful information. Thank you for the post. I will certainly return.|

get phone number · 2020年5月19日 下午9:56

It’s a pity you don’t have a donate button! I’d definitely donate to this superb blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this website with my Facebook group. Chat soon!|

THC CARTS · 2020年5月20日 下午2:24

I go to see daily some web pages and sites to read articles, however this webpage presents feature based posts.|

pelispedia · 2020年5月20日 下午2:49

Great site you’ve got here.. It’s difficult to find high-quality writing like yours nowadays. I really appreciate individuals like you! Take care!!|

best cbd oil companies · 2020年5月20日 下午9:22

great issues altogether, you simply received a new reader. What could you recommend in regards to your submit that you made a few days in the past? Any positive?|

cbd oil reviews · 2020年5月22日 下午11:47

Thanks for sharing your thoughts on meta_keyword. Regards|

best cbd oil companies · 2020年5月23日 上午12:26

Why visitors still make use of to read news papers when in this technological world everything is accessible on web?|

cbd oil companies · 2020年5月23日 上午2:21

Genuinely no matter if someone doesn’t be aware of then its up to other users that they will assist, so here it happens.|

keep eading · 2020年5月24日 上午12:00

Hi there, all is going sound here and ofcourse every one is sharing data, that’s genuinely good, keep up writing.|

AWS · 2020年5月24日 上午1:52

{

my website · 2020年5月24日 上午9:19

I’ve been exploring for a little for any high-quality articles or weblog posts on this sort of house . Exploring in Yahoo I ultimately stumbled upon this web site. Reading this info So i’m satisfied to convey that I’ve an incredibly excellent uncanny feeling I came upon exactly what I needed. I most indisputably will make sure to do not disregard this web site and provides it a glance on a continuing basis.|

visit · 2020年5月24日 上午11:13

Whats up this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!|

covid 19 loan · 2020年5月25日 上午12:07

Hello to every one, for the reason that I am in fact eager of reading this blog’s post to be updated daily. It contains nice data.|

best cbd oil · 2020年5月25日 上午2:58

Hello Dear, are you in fact visiting this site daily, if so after that you will without doubt get nice know-how.|

Fiverr gigs · 2020年5月25日 下午9:24

Ahaa, its good discussion on the topic of this piece of writing here at this weblog, I have read all that, so now me also commenting at this place.|

fiverr gig reviews · 2020年5月26日 上午7:13

Keep on working, great job!|

Best Fiverr Gigs · 2020年5月26日 下午5:58

I’m really loving the theme/design of your weblog. Do you ever run into any web browser compatibility problems? A number of my blog audience have complained about my website not working correctly in Explorer but looks great in Firefox. Do you have any recommendations to help fix this issue?|

garagedoorrepairdfw · 2020年5月26日 下午11:08

Thank you for every other informative website. The place else could I am getting that kind of information written in such an ideal approach? I have a undertaking that I’m simply now operating on, and I’ve been at the glance out for such info.|

Free video posting site · 2020年5月27日 上午6:33

Hi there, I log on to your blog on a regular basis. Your writing style is witty, keep up the good work!|

lose weight dancing · 2020年5月28日 下午12:52

Way cool! Some extremely valid points! I appreciate you penning this post and also the rest of the site is also really good.|

check this out · 2020年5月28日 下午10:16

Woah! I’m really loving the template/theme of this site. It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a excellent job with this. Additionally, the blog loads extremely fast for me on Firefox. Superb Blog!|

find out more · 2020年5月29日 下午3:37

I’m extremely impressed together with your writing talents and also with the format to your weblog. Is that this a paid theme or did you customize it yourself? Either way keep up the excellent high quality writing, it’s rare to see a nice blog like this one nowadays..|

more info here.. · 2020年5月29日 下午6:33

Greetings! Very helpful advice in this particular article! It’s the little changes that make the biggest changes. Thanks a lot for sharing!|

look at this · 2020年5月29日 下午6:45

When someone writes an paragraph he/she retains the idea of a user in his/her mind that how a user can know it. Thus that’s why this paragraph is great. Thanks!|

super foods for quick weight loss · 2020年5月29日 下午8:47

My spouse and I stumbled over here from a different web page and thought I might check things out. I like what I see so i am just following you. Look forward to exploring your web page again.|

发表评论

电子邮件地址不会被公开。 必填项已用*标注