2015年11月9日

nc

摘要: one time connectmethod1:server:echo test_message | nc -l -p 1234 -w 1client:echo "hha" | nc 193.168.141.33 1234method2:server:echo test_message | nc -... 阅读全文

posted @ 2015-11-09 17:46 yaoweilei 阅读(144) 评论(0) 推荐(0) 编辑

ssh connect

摘要: import paramikodef ssh2(ip,username,passwd,cmd): try: ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) paramiko.ut 阅读全文

posted @ 2015-11-09 00:32 yaoweilei 阅读(876) 评论(0) 推荐(0) 编辑

2015年11月8日

paramiko setup

摘要: # yum install python-setuptools# easy_install pip# yum install gcc# yum install python-devel.x86_64# pip install paramiko 阅读全文

posted @ 2015-11-08 14:27 yaoweilei 阅读(95) 评论(0) 推荐(0) 编辑

2015年10月27日

vnc

摘要: nova list nova show e4b3c2a4-1132-49e4-8335-1b5974cd70d8 | OS-EXT-SRV-ATTR:instance_name | instance-0000003e [root@compute-kilo-z ~]# virsh dumpxml in 阅读全文

posted @ 2015-10-27 15:52 yaoweilei 阅读(107) 评论(0) 推荐(0) 编辑

2015年10月16日

ps

摘要: ps -elf 阅读全文

posted @ 2015-10-16 10:25 yaoweilei 阅读(91) 评论(0) 推荐(0) 编辑

netstat

摘要: netstat -apn|grep vpn 阅读全文

posted @ 2015-10-16 10:24 yaoweilei 阅读(112) 评论(0) 推荐(0) 编辑

2015年10月14日

net nic

摘要: vim /etc/sysconfig/grub #往文件中GRUB_CMDLINE_LINUX行中value中添加”net.ifnames=0 biosdevname=0”内容。 #执行grub2-mkconfig -o /boot/grub2/grub.cfg #重启系统 [root@comput 阅读全文

posted @ 2015-10-14 10:22 yaoweilei 阅读(302) 评论(0) 推荐(0) 编辑

2015年10月12日

git-command

摘要: 常用命令: 从远程库上取代码到本地,并创建本地分支 git checkout -b local_branch --track remotes/origin/mitaka (local_branch本地分支名,origin/mitaka远程分支名称) 修改已经提交过的代码 git commit --a 阅读全文

posted @ 2015-10-12 10:52 yaoweilei 阅读(217) 评论(0) 推荐(0) 编辑

2015年9月29日

instance

摘要: glance image-create --name "sslvpn-20160205v4" --disk-format qcow2 --container-format bare --progress < /home/yaowl/bak-image/sslvpn-20160119v3.qcow2 阅读全文

posted @ 2015-09-29 15:51 yaoweilei 阅读(439) 评论(0) 推荐(0) 编辑

iptables

摘要: iptables -D INPUT -p tcp --dport 9696 -j REJECT iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT --append -A chain Append to chain--delete -D chai 阅读全文

posted @ 2015-09-29 15:27 yaoweilei 阅读(123) 评论(0) 推荐(0) 编辑

导航