07 2016 档案

摘要:php 的配置(一) 、编译 PHP 的安装包---此处为 5.4.36 版本的 php[root@server1 ~]# yum install libxml2-devel net-snmp-devel curl-devel libpng-devel libjpeg-devel ... 阅读全文
posted @ 2016-07-30 23:11 tyzZ001 阅读(246) 评论(0) 推荐(0) 编辑
摘要:视图 view直接操作数据库时,是在逻辑模型层操作的,即给定的集合中的关系都是实实在在存储在数据库中的 出于安全考虑,我们要隐藏特定的数据 在SQL中,允许定义虚关系,他在概念上包含查询的结果,虚关系并不预先进行计算并存储,而是使用虚关系的时候才通过执行查询,被计算出来 不是逻辑模... 阅读全文
posted @ 2016-07-30 21:57 tyzZ001 阅读(159) 评论(0) 推荐(0) 编辑
摘要:我的博客链接删除表 需要重新createdrop table r;删除表中所有元组 可以重新插入delete from r; 前者更强力一点mysql> select name from user;+-------+| name |+-------... 阅读全文
posted @ 2016-07-29 22:54 tyzZ001 阅读(212) 评论(0) 推荐(0) 编辑
摘要:反向代理的配置:server { listen 80; server_name www.westos.org; #westos此域名的ip为110 location / { proxy_pass h... 阅读全文
posted @ 2016-07-28 21:56 tyzZ001 阅读(157) 评论(0) 推荐(0) 编辑
摘要:系统版本 centos7.0nginx版本 nginx1.8.0tar zxf nginx-1.8.0.tar.gzcd nginx-1.8.0/vim auto/cc/gcc 注释debug 可以减小安装后的大小vim src/core/nginx.h 隐藏n... 阅读全文
posted @ 2016-07-27 17:03 tyzZ001 阅读(168) 评论(0) 推荐(0) 编辑
摘要:转自nginx中文手册#运行用户 user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1;#全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.l... 阅读全文
posted @ 2016-07-27 16:42 tyzZ001 阅读(163) 评论(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 tyzZ001 阅读(1103) 评论(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 tyzZ001 阅读(286) 评论(0) 推荐(0) 编辑
摘要:import timeprint time.time() #返回纪元开始的秒数print time.ctime() # 正常的打印时间print time.clock() #clock()返回处理器时钟时间,它的返回值一般用于性能测试与基准测试。因此... 阅读全文
posted @ 2016-07-11 22:36 tyzZ001 阅读(138) 评论(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 tyzZ001 阅读(257) 评论(0) 推荐(0) 编辑
摘要:根据代码进行学习class Province: #定义了一个类 momo = '中国的23个省之一' # 字段 def __init__(self, name, city, leader, flag): # 构造器方法 self.N... 阅读全文
posted @ 2016-07-10 21:31 tyzZ001 阅读(160) 评论(0) 推荐(0) 编辑
摘要:哈哈哈 阅读全文
posted @ 2016-07-10 09:44 tyzZ001 阅读(115) 评论(0) 推荐(0) 编辑
摘要:python装饰器的使用def ty(func): #定义装饰器 def zty(): print 'hehehe' #装饰内容 func() ... 阅读全文
posted @ 2016-07-09 22:11 tyzZ001 阅读(150) 评论(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 tyzZ001 阅读(308) 评论(0) 推荐(0) 编辑
摘要:mysql> show variables like 'log_bin'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | log_bin | OFF | +-----... 阅读全文
posted @ 2016-07-08 21:47 tyzZ001 阅读(546) 评论(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 tyzZ001 阅读(1420) 评论(0) 推荐(0) 编辑
摘要:正在执行的程序 进程 进程管理的作用:(优先级) 判断服务器健康状态 查看系统中的所有进程 杀死进程 查看系统中的所有进程 ps aux [root@VM_225_102_centos ~]# ps aux USER PID %CPU %MEM VSZ RSS T... 阅读全文
posted @ 2016-07-07 21:18 tyzZ001 阅读(335) 评论(0) 推荐(0) 编辑
摘要:1.系统延迟任务发起命令 at [root@VM_225_102_centos mnt]# at 20:50 at> touch zty.txt at> #ctrl+D退出编辑。 job 1 at Wed Jul 6 20:50:00 2016 [root@VM_225_102_centos... 阅读全文
posted @ 2016-07-06 21:27 tyzZ001 阅读(214) 评论(0) 推荐(0) 编辑
摘要:ACL权限。 1.对于文件的权限进行附加补充说明的一个权限设定方式。提供传统的权限以外的具体权限的设置,可以针对单一用户、单一文件、单一目录来进行r、w、x的权限设置。 -rw-r--r--. 1 root root 0 Nov 7 09:21 /mnt/file ... 阅读全文
posted @ 2016-07-06 20:44 tyzZ001 阅读(140) 评论(0) 推荐(0) 编辑
摘要:[root@VM_225_102_centos ~]# docker version #查看版本 Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Bu... 阅读全文
posted @ 2016-07-05 21:34 tyzZ001 阅读(134) 评论(0) 推荐(0) 编辑
摘要:Docker requires a 64-bit installation regardless of your CentOS version. Also, your kernel must be 3.10 at minimum, which CentOS 7 runs. [root@VM_... 阅读全文
posted @ 2016-07-05 20:22 tyzZ001 阅读(173) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示