#!/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
I suppose,were childrenonec.