闲着没事就是爱折腾,免费阿里云主机一直闲着,今天有空鼓捣了一下。
创建用户的时候出现了一点小问题,写篇博文以备后查。
执行命令:
<span style="font-size:14px;">adduser testuesr</span>
错误提示如下:
<span style="font-size:14px;">perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_PAPER = "zh_CN.UTF-8",
LC_ADDRESS = "zh_CN.UTF-8",
LC_MONETARY = "zh_CN.UTF-8",
LC_NUMERIC = "zh_CN.UTF-8",
LC_TELEPHONE = "zh_CN.UTF-8",
LC_IDENTIFICATION = "zh_CN.UTF-8",
LC_MEASUREMENT = "zh_CN.UTF-8",
LC_TIME = "zh_CN.UTF-8",
LC_NAME = "zh_CN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").</span>
解决方法:
step 1)
<span style="font-size:14px;">vim .bashrc</span>
step 2)
文件末尾追加:
<span style="font-size:14px;">export LC_ALL=C</span>
或者执行命令:
<span style="font-size:14px;">echo "export LC_ALL=C" >> /root/.bashrc</span>
step 3)
最后执行:
<span style="font-size:14px;">source /root/.bashrc </span>
OK, 问题解决~
本文为原创内容,亲测可用!欢迎转载,转载请注明出处:blog.csdn.net/ljgstudy,谢谢您的配合!