摘要: mysql> select * from result;+------+---------+-------+| name | subject | score |+------+---------+-------+| a | a-1 | 60 || b | b-1 |... 阅读全文
posted @ 2014-11-26 09:55 study-notes 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: ======================================================================================环境:Centos 5.5x86svn-server:10.0.0.99web-server:10.0.0.105=======... 阅读全文
posted @ 2014-11-25 21:38 study-notes 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 枚举 set 以及表联合查询实例CREATE TABLE `enum_set` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `acl` set('x',... 阅读全文
posted @ 2014-11-25 19:00 study-notes 阅读(181) 评论(0) 推荐(0) 编辑
摘要: vimrc 配置详解#-----------------------------------------------------------------------------------------------------set history=5000 #命令行历史纪录set hl... 阅读全文
posted @ 2014-11-25 12:30 study-notes 阅读(159) 评论(0) 推荐(0) 编辑
摘要: mysql 5.6之前数据库alter table 原理:ALTER TABLE运行时会对原表进行临时复制,在副本上进行更改,然后删除原表,再对新表进行重命名。在执行ALTER TABLE时,其它用户可以阅读原表,但是对表的更新和修改的操作将被延迟,直到新表生成为止。新表生成后,这些更新和修改信息会... 阅读全文
posted @ 2014-11-17 15:54 study-notes 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 一:安装gityum install -y gituseradd git二:安装gitosis1:服务器端yum install python-setuptoolsgit clone git://github.com/res0nat0r/gitosis.gitcd gitosissudo pytho... 阅读全文
posted @ 2014-11-13 18:06 study-notes 阅读(361) 评论(0) 推荐(0) 编辑
摘要: datetime1. 占用8个字节2. 允许为空值,可以自定义值,系统不会自动修改其值。3. 实际格式储存(Just stores what you have stored and retrieves the same thing which you have stored.)4. 与时区无关(It... 阅读全文
posted @ 2014-11-13 17:36 study-notes 阅读(495) 评论(0) 推荐(0) 编辑
摘要: #-----------------------------------------------------------------------------------------------------FastDFS服务端有两个角色:跟踪器(tracker)和存储节点(storage)跟踪器主要做... 阅读全文
posted @ 2014-11-11 22:04 study-notes 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 由于数据分析的需要,我们必须打开Haproxy日志,并记录相关的503错误信息进行汇总统计,所以有了下文:在配置前,我们先来了解下日志的level: local0~local7 16~23保留为本地使用emerg 0 系统不可用alert 1 必须马上采取行动的事件crit 2 关键的事件err 3 错误事件warning 4 警告事件notice 5 普通但重要的事件info 6 有用的信息debug 7 调试信息好了 别的就不多说了,下面开始实际配置:vi haproxy.conf(在default处添加如下信息)#####################... 阅读全文
posted @ 2013-10-31 00:27 study-notes 阅读(3019) 评论(0) 推荐(0) 编辑
摘要: 1 [root@CHN-BJ-01-DR720-VPN script]# cat account_auto.sh 2 #!/bin/bash 3 #Date:2013-08-29 4 #Author:ZhangLuYa 5 #Version 1.5 6 7 Port="51022" 8 Work="/work/script" 9 ip_list="${Work}/test.txt" 10 Password=$(cat /dev/urandom|head -1|md5sum|head -c 10) 11 12 Public(){ 13 阅读全文
posted @ 2013-09-23 12:10 study-notes 阅读(154) 评论(0) 推荐(1) 编辑