摘要: 如果是传输一个目录 接收端先进入一个目录 然后 nc -l 12345 | tar zxvf -,端口采用12345,被占用了就换一个 发送端运行 tar zcvf - dir_path | nc remote_ip 12345 ,这里remote_ip 填写接收端的 ip 这里最好跑到要传输的目录 阅读全文
posted @ 2021-05-17 16:08 consolexinhun 阅读(124) 评论(0) 推荐(0) 编辑
摘要: nohup bash xxx.sh > out.log 2>&1 & 可以让命令后台运行, 输入 tail -f out.log 可以查看输出的结果 这样即使客户端断开了连接,服务端也不会因为客户端的断连而终止程序 另外,在运行 python 程序的时候,最好加上 -u 参数,例如nohup pyt 阅读全文
posted @ 2021-05-17 16:03 consolexinhun 阅读(166) 评论(0) 推荐(0) 编辑