向拷贝本地代码到服务器,但是拷贝失败
lcc@lcc target$ scp /Users/lcc/IdeaProjects/AllTest/hive_test/target/hive_test-1.0-SNAPSHOT.jar root@ip:/root/
root@10.0.xxx.161's password:
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
hive_test-1.0-SNAPSHOT.jar 100% 3623 42.2KB/s 00:00
lcc@lcc target$
原因:服务器的$LC_CTYPE
和本地的$LC_CTYPE
值不一样
本地
root@lcc postfix# echo $LC_CTYPE
UTF-8
服务器
[root@tdh02 ~]# echo $LC_CTYPE
啥也没有
或者
[root@tdh02 ~]# echo $LC_CTYPE
en_US.