如何看待百度的https By duncan21Posted on 2015 年 3 月 26 日Posted in repostTagged https 最近如果大家足够仔细的话,一定会发现现在打开百度会发现它的URL已经从以前的http变成了https 网站使用证书的好处不言而喻的,网站的安全性得到了质的提高! [……] 阅读全文 Read More
实现wp后台登陆页面强制使用https By duncan21Posted on 2015 年 3 月 25 日2015 年 5 月 23 日Posted in wordpressTagged https 网站后台的重要性是不言而喻的,所以有必要做好后台的保护措施。今天我要使用https来给后台登陆界面加把锁。因为后台是给自个的用的,所以我用自签证书就可以满足需求了。 环境准备:[……] 阅读全文 Read More
apache下实现访问http强制跳转到https By duncan21Posted on 2015 年 3 月 25 日2016 年 5 月 21 日Posted in LinuxTagged https 在有些生产环境下,需要将所有访问http的请求都转到https上,可以通过伪静态来实现 [root@NFS test2]# cat /etc/redhat-release CentOS relea[……] 阅读全文 Read More
[转]Linux内核调优之处理大量TIME_WAIT By duncan21Posted on 2015 年 3 月 23 日2015 年 3 月 23 日Posted in LinuxTagged 内核优化 Linux下高并发的nginx,apache,lvs,haproxy,squid等服务器生产环境下,TCP的TIME_WAIT套接字数量经常达到2-3W,此时服务器很容易被拖死或者严重影响业务服[……] 阅读全文 Read More
php.ini配置文件的调整和优化 By duncan21Posted on 2015 年 3 月 21 日Posted in LinuxTagged php.ini 环境: php-5.3.29 安全配置 (1)打开php的安全模式 php的安全模式是一个非常重要的内嵌的安全机制,它能控制一些p[……] 阅读全文 Read More
安装zencart程序所必要的mcrypt模块 By duncan21Posted on 2015 年 3 月 20 日2016 年 5 月 21 日Posted in LinuxTagged mcrypt mcrypt简单介绍 PHP程序员们在编写代码程序时,除了要保证代码的高性能之外,还有一点是非常重要的,那就是程序的安全性保障。PHP除了自带的几种加密函数外,还有功能更全面的PHP加密扩展库Mcr[……] 阅读全文 Read More
巴西中卫双鬼开门,送切尔西欧冠出局 By duncan21Posted on 2015 年 3 月 19 日2015 年 3 月 20 日Posted in Soccer 北京时间3月12日凌晨3点45(当地时间11日晚间19点45),2014-15赛季欧冠1/8决赛次回 合一场焦点战,切尔西坐镇斯坦福桥球场迎战巴黎圣日耳曼。上半场伊布争议红牌被罚出场,两队0-0[……] 阅读全文 Read More
cacti如何监控多核CPU By duncan21Posted on 2015 年 3 月 18 日2021 年 4 月 11 日Posted in monitoringTagged 多核CPU 使用Cacti的默认的模板监控cpu使用率 步骤: 关联 Associated Data Queries 设置并启用 查看效果图(因为我的cp[……] 阅读全文 Read More
忘记了cacti的登陆密码 By duncan21Posted on 2015 年 3 月 18 日Posted in monitoringTagged cacti 如果是忘记了admin的密码,可以在linux的命令行下执行下面的命令: mysql -e "update cacti.user_auth set password=m[……] 阅读全文 Read More
[转]windows常用命令 By duncan21Posted on 2015 年 3 月 18 日2015 年 3 月 18 日Posted in computingTagged dos 1. gpedit.msc—–组策略 2. sndrec32——-录音机 3. Nslookup——-IP地址侦测器 [……] 阅读全文 Read More
如何理解Linux CPU Load By duncan21Posted on 2015 年 3 月 17 日2015 年 3 月 17 日Posted in LinuxTagged cpu load, uptime Understanding Linux CPU Load – when should you be worried? You might be familiar with Lin[……] 阅读全文 Read More
[转]中国足球改革总体方案:申办世界杯 足协总局脱钩 By duncan21Posted on 2015 年 3 月 16 日2015 年 3 月 16 日Posted in SoccerTagged 足球改革No Comments on [转]中国足球改革总体方案:申办世界杯 足协总局脱钩 今年2月27日,习近平主持中央深改小组会议通过了《中国足球改革总体方案》,会议指出,实现中华民族伟大复兴的中国梦与中国体育强国梦息息相关,发展振兴足球是建设体育强国的必然要求,也是全国人民的[......]阅读全文 Read More
openssl之文件校验 By duncan21Posted on 2015 年 3 月 16 日2016 年 6 月 15 日Posted in LinuxTagged 文件校验 利用openssl提取文件的校验码并检测文件是否是一致的 [codesyntax lang=”text”] [root@NFS-Server test]# openssl dgst -md5 1.[......]阅读全文 Read More
[转]nginx+php-fpm出现502 bad gateway错误解决方法 By duncan21Posted on 2015 年 3 月 10 日2016 年 6 月 29 日Posted in Linux, repostTagged 502 502错误是所有用nginx跑php的运维人员不愿意看见的 nginx出现502有很多原因,但大部分原因可以归结为资源数量不够用,也就是说后端php-fpm处理有问题,nginx[……] 阅读全文 Read More
关于三分球命中率 By duncan21Posted on 2015 年 3 月 8 日2021 年 5 月 2 日Posted in 感言Tagged 三分, 科沃尔 话说14-15赛季,在三分球的命中率榜上,Korver的命中率曾一度高达53%之高,近期因为状态欠佳,已经跌到了不到5成的的命中率。但是目前,他仍然高居三分球命中率榜首。 从接触篮球开始,我就一[……] 阅读全文 Read More
部署cacti监控软件 By duncan21Posted on 2015 年 3 月 2 日2015 年 3 月 18 日Posted in monitoringTagged cacti cacti Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具 官网 http://www.cacti[……] 阅读全文 Read More