随笔分类 -  Linux

摘要:Nov 17 15:12:45 localhost haproxy[11628]: 123.4.5.6:14566 [17/Nov/2016:15:12:45.373] http servers/srv3 64/0/1/21/86 200 289 - - 72/72/0/1/0 0/0 "url" 阅读全文
posted @ 2016-11-17 15:11 tinaleft 阅读(215) 评论(0) 推荐(0)
摘要:grep --include='*.xml' -i, --ignore-case 不区分大小写 -L, --files-without-match 显示不匹配的文件名 -n, --line-number 显示的加上匹配所在的行号 cat /etc/passwd | grep -E '^(patrol 阅读全文
posted @ 2016-11-10 14:46 tinaleft 阅读(142) 评论(0) 推荐(0)
摘要:A机可免密码访问B机:A机执行:ssh-keygen 一路回车ssh-copy-id -i ~/.ssh/id_rsa.pub B机用户@B机IP ssh@B机IP即可免密码访问B机 阅读全文
posted @ 2016-11-09 17:05 tinaleft 阅读(170) 评论(0) 推荐(0)
摘要:rsync -avz -e ssh /home/local/filename remote@192.168.0.120:/home/remote/dst_dir 需要设置ssh免密钥登录远程主机 阅读全文
posted @ 2016-11-09 17:04 tinaleft 阅读(603) 评论(0) 推荐(0)