gpt4 book ai didi

linux - AWS ec2 en_US.UTF-8 问题

转载 作者:IT王子 更新时间:2023-10-28 23:55:56 24 4
gpt4 key购买 nike

https://aws.amazon.com/amazon-linux-ami/2012.03-release-notes/

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
[ec2-user@ip-10-136-14-68 ~]$ vi ~/.bash_profile
[ec2-user@ip-10-136-14-68 ~]$


# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export LC_CTYPE="en_US.UTF-8"

你是怎么解决这个问题的?

最佳答案

另一种解决方案是将这些行添加到 /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

下次登录时,警告消息应该已经消失了。

关于linux - AWS ec2 en_US.UTF-8 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12016318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com