![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
彭伟响
学习,就是脚踏实地!
编程,就是要动手Coding
展开
-
CentOS 7.2设置中英文环境
中文 -> 英文root用户 vim /etc/locale.conf 修改为: LANG=”en_US.UTF-8”普通用户 vim /home/test/.bashrc 修改为: export LANG=”en_US.UTF-8”英文 -> 中文root用户 vim /etc/locale.conf 修改为: LANG=”zh_CN.UTF-8...原创 2018-09-08 09:58:43 · 3473 阅读 · 1 评论 -
Linux expect ssh自动登录
安装expect命令:yum install expect -y创建exp脚本,注意首行为 #!/usr/bin/expect,并修改权限为750touch ssh.expchmod 750 ssh.exp拷贝以下内容到ssh.exp文件#!/usr/bin/expect#参数校验if { $argc != 3 } { send_user "usage:...原创 2018-09-08 11:29:34 · 1287 阅读 · 0 评论