[转]聊聊美国政体中的权力制衡——不仅仅是三权分立 By duncan21Posted on 2016 年 11 月 3 日2016 年 11 月 4 日Posted in repostTagged 美国No Comments on [转]聊聊美国政体中的权力制衡——不仅仅是三权分立 ★引子——为啥美国几乎不可能禁枪? 每当大洋彼岸发生重大枪击案,都会听到周围的人在嘀咕——为啥美国[……] 阅读全文 Read More
nginx平滑升级并且保持不间断服务 By duncan21Posted on 2016 年 11 月 2 日2016 年 11 月 2 日Posted in LinuxTagged ngixnNo Comments on nginx平滑升级并且保持不间断服务 1. 开始之前先查看一下当前使用的版本。 [root@teddy nginx-1.10.2]# /[......]阅读全文 Read More
测试Nginx服务器开启pagespeed加速 By duncan21Posted on 2016 年 10 月 31 日2016 年 10 月 31 日Posted in LinuxTagged ngixn, pagespeedNo Comments on 测试Nginx服务器开启pagespeed加速 #进入 nginx 源码同级目录,我的是在/root下面 cd /root #下载最新的稳定[……] 阅读全文 Read More
nginx防止sql注入攻击安全设置 By duncan21Posted on 2016 年 10 月 31 日Posted in LinuxTagged sql注入No Comments on nginx防止sql注入攻击安全设置 cat security.conf ## Block SQL injections if ([......]阅读全文 Read More
工作中nginx的重写案例记录 By duncan21Posted on 2016 年 10 月 31 日Posted in LinuxTagged 301, nginx, rewriteNo Comments on 工作中nginx的重写案例记录 需求: 因为运营的需求,需要将所有网站的目录test1的访问请求跳转到tes2, 如何将[……] 阅读全文 Read More
[转]房地产、银行、贷款、政府、贫民、富民、泡沫、经济崩溃,他们之间是什么联系关系 By duncan21Posted on 2016 年 10 月 17 日Posted in repostTagged 房地产No Comments on [转]房地产、银行、贷款、政府、贫民、富民、泡沫、经济崩溃,他们之间是什么联系关系 作者:费寒冬 链接:https://www.zhihu.com/question/19894997[……] 阅读全文 Read More
Linux下pxe+dhcp+http+kickstart无人值守自动安装系统部署 By duncan21Posted on 2016 年 10 月 10 日Posted in LinuxTagged 批量安装No Comments on Linux下pxe+dhcp+http+kickstart无人值守自动安装系统部署 适用场景: 1)需要部署上百台甚至上千上万台的系统安装 2)没有光驱 1.[……] 阅读全文 Read More
[转]php-fpm出现setrlimit(RLIMIT_NOFILE) failed 异常 By duncan21Posted on 2016 年 9 月 22 日2016 年 9 月 22 日Posted in LinuxTagged php, setrlimitNo Comments on [转]php-fpm出现setrlimit(RLIMIT_NOFILE) failed 异常 php-cgi日志php-fpm出现setrlimit(RLIMIT_NOFILE) failed[……] 阅读全文 Read More
日常总结检查服务器及网站运行是否正常的几条 By duncan21Posted on 2016 年 9 月 18 日2016 年 9 月 18 日Posted in LinuxNo Comments on 日常总结检查服务器及网站运行是否正常的几条 检查服务器的网卡流量,一般有会有安装cacti或者zabbix,看看是否与异常或者波动很[……] 阅读全文 Read More
[转]很有趣的故事 By duncan21Posted on 2016 年 9 月 14 日Posted in repostNo Comments on [转]很有趣的故事 作者:Andy宋 链接:https://www.zhihu.com/question/201282[……] 阅读全文 Read More
[转]centos7 开机/etc/rc.local 不执行的问题 By duncan21Posted on 2016 年 9 月 14 日Posted in LinuxTagged centos7, rc.localNo Comments on [转]centos7 开机/etc/rc.local 不执行的问题 最近发现centos7 的/etc/rc.local不会开机执行,于是认真看了下/etc/rc.lo[……] 阅读全文 Read More
nginx的安全配置 By duncan21Posted on 2016 年 9 月 6 日2016 年 9 月 6 日Posted in LinuxTagged nginx, phpNo Comments on nginx的安全配置 网站的目录结构: 2 directories, 7 files 需求: 1[……] 阅读全文 Read More
如何使用Forfiles ? By duncan21Posted on 2016 年 9 月 5 日Posted in computingTagged forfilesNo Comments on 如何使用Forfiles ? 环境: win7或者win2008 FORFILES [/P pathname] [/M sea[……] 阅读全文 Read More
2015中国股市牛市全程回顾 By duncan21Posted on 2016 年 9 月 4 日2024 年 5 月 16 日Posted in repostTagged 股市, 郎咸平No Comments on 2015中国股市牛市全程回顾 第十三章中国股市:全球股市中的“另类”? 一、中国股市为何与全球股市反向而行? 2015年4月1[……] 阅读全文 Read More
在Windows机器中启动多个Memcached服务实例 By duncan21Posted on 2016 年 8 月 31 日2016 年 8 月 31 日Posted in computingTagged memcached, 缓存服务No Comments on 在Windows机器中启动多个Memcached服务实例 环境 OS:win08 R2 memcache版本:memcached 1.2.1 下[……] 阅读全文 Read More
如何在win2008下检测到sql server的死锁 By duncan21Posted on 2016 年 8 月 25 日2016 年 8 月 25 日Posted in MySqlTagged sql serverNo Comments on 如何在win2008下检测到sql server的死锁 阻塞,是指当一个数据库会话中的事务,正在锁定其他会话事务想要读取或修改的资源,造成这些会话发出的请求[……] 阅读全文 Read More
[转]mysql状态查看 QPS/TPS/缓存命中率查看 By duncan21Posted on 2016 年 8 月 25 日Posted in MySqlTagged mysql 运行中的mysql状态查看 对正在运行的mysql进行监控,其中一个方式就是查看mysql运行[……] 阅读全文 Read More
在Windows中实现Rsync同步 By duncan21Posted on 2016 年 8 月 22 日2017 年 7 月 26 日Posted in computingTagged rsync Rsync是一款不错的文件免费同步软件,可以镜像保存整个目录树和文件系统,同时保持原来文件的权限、时[……] 阅读全文 Read More
[转]rsync+inotify实现实时同步案例 By duncan21Posted on 2016 年 8 月 22 日2021 年 7 月 15 日Posted in LinuxTagged inotify, rsync 随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐[……] 阅读全文 Read More
[转]linux下vim命令大全 By duncan21Posted on 2016 年 8 月 22 日2021 年 6 月 24 日Posted in LinuxTagged vi, vim 进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首[……] 阅读全文 Read More