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
解决Xen PV下系统内核报错 By duncan21Posted on 2015 年 2 月 26 日2015 年 2 月 26 日Posted in LinuxTagged 内核报错 在做linux内核优化修改的时候,执行sysctl -p总是报错: &[……] 阅读全文 Read More
What is Python By duncan21Posted on 2015 年 2 月 19 日Posted in Python Python 是一种面向对象、解释型计算机程序设计语言,由Guido van Rossum于1989年底发明,第一个公开发行版发行于1991年,Python 源代码同样遵循 GPL(GNU Ge[……] 阅读全文 Read More
xenserver母鸡突然down By duncan21Posted on 2015 年 2 月 13 日Posted in virtualizationTagged xenserver 昨天,有2台xen服务器突然无法启动了,通过dell的kvm看到,只要系统启动之后,最后都会出现下的黑屏,经过调查分析,导致这2台母鸡无法正常启动的原因应该是,机房曾经,停机过,估计是直接拔的电[……] 阅读全文 Read More
linux下基于openssl的https服务配置 By duncan21Posted on 2015 年 2 月 12 日2015 年 3 月 24 日Posted in LinuxTagged https, openssl role ip 说明 CA 192.168.1.20[……] 阅读全文 Read More
添加ssl模块到已经安装好的apache中 By duncan21Posted on 2015 年 2 月 9 日2015 年 2 月 9 日Posted in LinuxTagged ssl_module 因为网站需要https服务,所以要配置ssl,但是发现之前安装apache的时候,没有配置mod_ssl [root@NFS-Client-01 ~]# cat /application/apa[......]阅读全文 Read More
openssl之enc命令教程 By duncan21Posted on 2015 年 2 月 7 日2015 年 2 月 8 日Posted in LinuxTagged enc, 文件加密 环境: [root@NFS-Client-01 ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@NFS-Client-[……] 阅读全文 Read More
使用fdisk给硬盘分区 By duncan21Posted on 2015 年 2 月 2 日Posted in LinuxTagged fdisk 考题: 给机器添加一块1G的硬盘,用fdisk进行分区 分成2P+E的方式,其中P1=200M P2=200M E=600,并且有2个逻辑分区,大小各为300M 解答: Disk /dev[……] 阅读全文 Read More
解决nfs 客户端 UID/GID 映射是 nobody:nobody的问题 By duncan21Posted on 2015 年 1 月 30 日2015 年 1 月 30 日Posted in LinuxTagged nobody 有几台服务器挂载同一台nfs服务器的一个共享目录,结果其他都正常继承了nfs服务器的用户信息,而另一台的目录所属用户组变成了nobody,如下图: 【采用的是默认系统的权限,即: /oldboy[……] 阅读全文 Read More