中文不乱码需要系统字符集与putty客户端字段一致。
查看系统字字符集命令 echo $LANG
查看putty字符集 Window -> Translation
修改系统字符集命令 export LANG=zh_cn.UTF-8