如题报如下错误:(环境为CentOS7)In file included from greenlet.c:5:0:greenlet.h:8:20: fatal error: Python.h: No such file or directory #include ... Read More
posted @ 2015-10-20 19:15 超超xc Views(903) Comments(0) Diggs(0) Edit
Centos大多数情况下是用来做服务器的,但是由于各种原因我现在要用Centos做开发机,所以当然要安装开发神奇Sublime textle.注意:安装目录因人而异,我的安装目录是/opt/sublime_text_3.一、建立软件安装目录(我一般把软件安装在opt目录下)# mkdir /opt#... Read More
posted @ 2015-10-20 17:51 超超xc Views(739) Comments(0) Diggs(0) Edit
# (1)、将111.206.217.0/24、218.75.110.0/24两个网段IP地址插入proxy.nmap_ip表中,type字段按照个人序号插入。def readIpByAddr(): ip_list= [] for i in range(255): i = ... Read More
posted @ 2015-10-20 12:43 超超xc Views(1287) Comments(0) Diggs(0) Edit
#!/usr/bin/python#coding:utf-8from pyquery import PyQueryimport re# 抓取:http://www.stylebop.com/cn/product_details.php?id=606526&special=sale# 获得 产品名... Read More
posted @ 2015-10-20 12:07 超超xc Views(512) Comments(0) Diggs(0) Edit
#!/usr/bin/python#coding:utf-8import MySQLdb,timeimport urllibimport urllib2import threadingdef main(): conn = MySQLdb.connect(host='192.168.1.139'... Read More
posted @ 2015-10-18 22:32 超超xc Views(276) Comments(0) Diggs(0) Edit
#!/usr/bin/python#coding:utf-8import threadingimport timeimport Queueimport random#多线程理解def print_time(threadName,delay,counter): while counter: ... Read More
posted @ 2015-10-18 22:29 超超xc Views(273) Comments(0) Diggs(0) Edit
1.起初装上CentOS7后,mysql数据库变为Mariadb数据库。但实际是还是mysql.2.用户远程连接该数据库发现连接不了。然后关了SElinux,挺了firewall,发现还是不行。3.查阅资料终于解决: A.默认root是没有密码的,插入host数据 %,修改密码:$ mysql -... Read More
posted @ 2015-10-18 20:50 超超xc Views(2424) Comments(0) Diggs(0) Edit
一、配置防火墙,开启80端口、3306端口CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewall... Read More
posted @ 2015-10-18 17:33 超超xc Views(353) Comments(0) Diggs(0) Edit
ftp很常见的是用于存取文件的应用,它也用于日常备份。这种周期性的工作无疑需要通过自动化脚本来完成。本次系统为CentOS7本次实验需要你做如下操作:1.修改ftp服务器的配置文件/etc/vsftpd/vsftpd.conf,将anon_upload_enable=YES,前面的注释符去掉,即允许... Read More
posted @ 2015-10-17 22:11 超超xc Views(2014) Comments(0) Diggs(0) Edit
2015年10月17日09:28:42 python-time访问网站如果不想要缓存的就 在后面加 ?t=123如果网站遭到攻击应该怎么办,做流量清洗,分析包,正确的就放过,否则就抛弃掉。如果攻击的站站带宽满了,就看看是否让运营商帮忙做清洗.一般网站都有所CDN,否则扛不住。CDN: http://... Read More
posted @ 2015-10-17 20:53 超超xc Views(3033) Comments(0) Diggs(0) Edit
I suppose,were childrenonec.