上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 转自nginx中文手册#运行用户 user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1;#全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.l... 阅读全文
posted @ 2016-07-27 16:42 aallennty 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 安装nginx的时候出现./configure: error: SSL modules require the OpenSSL library. 解决方法: Centos需要安装openssl-devel Ubuntu则需要安装:sudo apt-get install lib... 阅读全文
posted @ 2016-07-27 16:29 aallennty 阅读(2010) 评论(0) 推荐(0) 编辑
摘要: $ git push origin masterWarning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.To git@github.... 阅读全文
posted @ 2016-07-20 22:41 aallennty 阅读(141) 评论(0) 推荐(0) 编辑
摘要: import timeprint time.time() #返回纪元开始的秒数print time.ctime() # 正常的打印时间print time.clock() #clock()返回处理器时钟时间,它的返回值一般用于性能测试与基准测试。因此... 阅读全文
posted @ 2016-07-11 22:36 aallennty 阅读(97) 评论(0) 推荐(0) 编辑
摘要: import MySQLdb conn = MySQLdb.connect(host='127.0.0.1',user='root',passwd='19950801',db='rlp') #开门print conn #链接状态cur ... 阅读全文
posted @ 2016-07-11 20:59 aallennty 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 根据代码进行学习class Province: #定义了一个类 momo = '中国的23个省之一' # 字段 def __init__(self, name, city, leader, flag): # 构造器方法 self.N... 阅读全文
posted @ 2016-07-10 21:31 aallennty 阅读(101) 评论(0) 推荐(0) 编辑
摘要: python装饰器的使用def ty(func): #定义装饰器 def zty(): print 'hehehe' #装饰内容 func() ... 阅读全文
posted @ 2016-07-09 22:11 aallennty 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 生成六位验证码python代码import randomdef Verifi_code(): code = [] for i in range(6): if i == random.randint(1,5): code.append(... 阅读全文
posted @ 2016-07-09 22:06 aallennty 阅读(129) 评论(0) 推荐(0) 编辑
摘要: mysql> show variables like 'log_bin'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | log_bin | OFF | +-----... 阅读全文
posted @ 2016-07-08 21:47 aallennty 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 安装了mysql5.7之后初始密码不再默认为空 1.查看初始密码: [root@VM_225_102_centos ~]# grep 'temporary password' /var/log/mysqld.log 2016-07-08T02:25:46.311098Z 1 [Note] A ... 阅读全文
posted @ 2016-07-08 10:44 aallennty 阅读(435) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页