- 杀进程
- sudo lsof -i tcp:{port}
- sudo kill -9 {PID}
- 应用程序损坏
- sudo xattr -rd com.apple.quarantine /Applications/xxxxxx.app
Iterm 2 连接服务器
- /Users/wangxiaobo/.ssh/brmxj
-
#!/usr/bin/expect set PORT 22 set HOST 主机 set USER root 用户名 set PASSWORD admin 密码 spawn ssh -p $PORT $USER@$HOST expect { "yes/no" {send "yes\r";exp_continue;} "*password:*" { send "$PASSWORD\r" } } interact
FTP
-
安装
- 安装 yum install vsftpd -y
- 关闭 启动 查看 systemctl stop vsftpd.service
systemctl start vsftpd.service
systemctl status vsftpd.service
-
检查端口 默认21 -> netstat -anp|grep 21
-
用户