摘要: -v 0.6 版本 zcat access.log.*.gz | goaccess -v 0.8.3以上版本,nginx日志查看 zcat access.log.*.gz | goaccess --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u"' - 阅读全文
posted @ 2016-12-16 11:48 乡村猫 阅读(206) 评论(0) 推荐(0) 编辑
摘要: zcat create.sql.gz | mysql -u root -p zabbixdb 阅读全文
posted @ 2016-12-13 09:48 乡村猫 阅读(992) 评论(0) 推荐(0) 编辑
摘要: git config --add core.filemode false 阅读全文
posted @ 2016-10-28 11:31 乡村猫 阅读(737) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashDBS=$(mysql -u root -padmin -e 'use database; show tables;' | awk '{ print $1 }');for table in ${DBS}dodbbak="/home/db/backups/db-"${table} 阅读全文
posted @ 2016-06-23 20:15 乡村猫 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 在CentOS Linux中终端命令中执行以下命令: 1).vi /etc/sysconfig/clock #编辑时间配置文件 ZONE="Asia/Shanghai" UTC=false #设置为false,硬件时钟不于utc时间一致 ARC=false 2).ln -sf /usr/share/ 阅读全文
posted @ 2016-06-14 10:44 乡村猫 阅读(3190) 评论(0) 推荐(0) 编辑
摘要: Debug output Confirm the problem. It is reproduced with Windows10/Vagrant 1.8.3/VirtualBox 5.0.20 andhashicorp/precise64 box. Looks like it is caused 阅读全文
posted @ 2016-06-13 22:10 乡村猫 阅读(3009) 评论(0) 推荐(0) 编辑
摘要: 步骤: 一、启动三台进程 1、./bin/mongod --dbpath=/home/work/app/mongodb/mongodb-linux-x86_64-amazon-3.2.7/data/r0 --logpath=/home/work/logs/mongodb/r0.log --fork 阅读全文
posted @ 2016-06-10 14:18 乡村猫 阅读(196) 评论(0) 推荐(0) 编辑
摘要: PHP7 Memcached 扩展 wget https://codeload.github.com/websupport-sk/pecl-memcache/zip/php7/pecl-memcache-php7.zip cd pecl-memcache-php7 /home/work/app/ph 阅读全文
posted @ 2016-06-07 19:49 乡村猫 阅读(3364) 评论(0) 推荐(0) 编辑
摘要: Installation To build and install the driver: Install for 64-bit Linux 1 Download the binary files for the desired release of MongoDB. Download the bi 阅读全文
posted @ 2016-06-07 18:11 乡村猫 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 链接:http://www.zhihu.com/question/19829601/answer/88069207来源:知乎 1. MySql+Memcached架构的问题 实际MySQL是适合进行海量数据存储的,通过Memcached将热点数据加载到cache,加速访问,很多公司都曾经使用过这样的 阅读全文
posted @ 2016-05-05 15:48 乡村猫 阅读(174) 评论(0) 推荐(0) 编辑