摘要: IPtables中可以灵活的做各种网络地址转换(NAT),网络地址转换主要有两种:SNAT和DNAT。SNAT是source networkaddress translation的缩写,即源地址目标转换。比如,多个PC机使用ADSL路由器共享上网,每个PC机都配置了内网IP,PC机访问外部网络的时候 阅读全文
posted @ 2017-10-26 10:54 feral 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash echo 'root:Qqwe1234' | chpasswdsystemctl disable firewalld.service #iptables -I INPUT -p tcp --dport 443 -j ACCEPT yum -y install python-pip pip install --upgrade pip pip install shadowso... 阅读全文
posted @ 2017-10-05 05:29 feral 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1 import re 2 import urllib.request 3 4 # ------ 获取网页源代码的方法 --- 5 def getHtml(url): 6 page = urllib.request.urlopen(url) 7 html = page.read() 8 return html 9 10 # ------ getHtm... 阅读全文
posted @ 2017-09-11 01:36 feral 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: 1 while True: 2 a = 0 3 n = input('从0开始加到您所输入的数字:') 4 if n.isdigit() == True: 5 n = int(n) 6 for i in range(n+1): 7 a += i 8 else: 9 ... 阅读全文
posted @ 2017-09-10 05:12 feral 阅读(3149) 评论(0) 推荐(0) 编辑
摘要: 系统内核以及硬件需要预留一部分内存使用,因此会造成 free -m 显示的内存大小比实际内存少一些。 dmidecode -t Memory| sed -n -e '/\tLocator:/p' -e '/Size/p' -e '/Type:/p' 阅读全文
posted @ 2017-09-01 09:10 feral 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Ubuntu,With Linux 3.13.0-29-generic(recovery mode) 把ro recovery nomodeset 改成rw single init=/bin/bash 阅读全文
posted @ 2017-08-27 18:39 feral 阅读(333) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858810.html 阅读全文
posted @ 2017-08-25 09:22 feral 阅读(100) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html 阅读全文
posted @ 2017-08-23 19:18 feral 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://www.92csz.com/study/linux/13.htm 阅读全文
posted @ 2017-07-11 12:06 feral 阅读(94) 评论(0) 推荐(0) 编辑
摘要: http://www.worlduc.com/blog2012.aspx?bid=730767 阅读全文
posted @ 2017-06-26 01:35 feral 阅读(200) 评论(0) 推荐(0) 编辑