系统出现kernel: audit: backlog limit exceeded提示 By duncan21Posted on 2017 年 1 月 26 日Posted in LinuxTagged audit, backlogNo Comments on 系统出现kernel: audit: backlog limit exceeded提示 今天早上上班以来,发现一台服务器无法ssh,果断找到了机房重启,机房重启的过程中,大量的 backl[……] 阅读全文 Read More
解决手机浏览器提示网站证书无效错误提示 By duncan21Posted on 2017 年 1 月 20 日2021 年 4 月 14 日Posted in LinuxTagged ssl, 浏览器错误No Comments on 解决手机浏览器提示网站证书无效错误提示 网站使用证书已经很久了,pc端打开没有任何问题,但是发现在手机端打开,浏览器会提示证书有问题:[……] 阅读全文 Read More
Centos7系统优化 By duncan21Posted on 2017 年 1 月 19 日2021 年 11 月 10 日Posted in LinuxTagged centos7, 优化No Comments on Centos7系统优化 #升级内核到最新 可以参考:https://teddylu.xyz/blog/4258.htm[……] 阅读全文 Read More
sqlserver 2008常用sql语句总结 By duncan21Posted on 2017 年 1 月 19 日2017 年 8 月 17 日Posted in sqlserverNo Comments on sqlserver 2008常用sql语句总结 sqlserver 2008常用sql语句总结 1.查询某个数据库有多少个表 select co[......]阅读全文 Read More
Linux下PHP扩展PDO编译安装 By duncan21Posted on 2017 年 1 月 18 日2017 年 1 月 18 日Posted in LinuxTagged pdo, pdo_mysqlNo Comments on Linux下PHP扩展PDO编译安装 背景: 最近,有个新站点上线,程序使用的是pdo连接MySQL,但是线上的php在当初安装的时候没[……] 阅读全文 Read More
windows下强制删除某个正在使用的文件 By duncan21Posted on 2017 年 1 月 17 日Posted in computingTagged delNo Comments on windows下强制删除某个正在使用的文件 与linux不同,正常情况下,是不能删除一下正在使用中的文件,比如iis的日志文件,线上的生产环境,[……] 阅读全文 Read More
MySQL全文索引之ft_min_word_len案例 By duncan21Posted on 2016 年 12 月 29 日2016 年 12 月 31 日Posted in MySqlTagged ft_min_word_lenNo Comments on MySQL全文索引之ft_min_word_len案例 今天遇到一个问题,就是明明做了全文索引,但是就是无法查询到 mysql> SELECT id[......]阅读全文 Read More
重启nginx后丢失nginx.pid问题解决 By duncan21Posted on 2016 年 12 月 29 日Posted in LinuxNo Comments on 重启nginx后丢失nginx.pid问题解决 使用nginx -s reload的时候出现: [error]: invalid PID nu[……] 阅读全文 Read More
MySQL开启慢日志查询 By duncan21Posted on 2016 年 12 月 29 日2016 年 12 月 29 日Posted in MySqlTagged log_slow, mysqlNo Comments on MySQL开启慢日志查询 环境: [root@php219 data]# cat /etc/redhat-release[……] 阅读全文 Read More
如何更换linode机房的centos7的内核? By duncan21Posted on 2016 年 12 月 8 日2017 年 4 月 7 日Posted in LinuxTagged 跟换内核No Comments on 如何更换linode机房的centos7的内核? 终于用上了Linode的机房的vps,弄好了系统之后发现,内核不支持pptp.机房技术答复说,需要更[……] 阅读全文 Read More
为网站的cookie添加httponly参数已提高网站的安全性 By duncan21Posted on 2016 年 12 月 8 日2016 年 12 月 8 日Posted in Linux, securityTagged cookie, httponlyNo Comments on 为网站的cookie添加httponly参数已提高网站的安全性 步骤1:在wp-config.php文件中加入下面的行 @ini_set(‘session.c[……] 阅读全文 Read More
amoeba实现MySQL读写分离 By duncan21Posted on 2016 年 12 月 6 日2021 年 4 月 15 日Posted in MySqlTagged amoeba, mysql读写分离No Comments on amoeba实现MySQL读写分离 测试环境: centos6+mysql5.1+amoeba2.2.0 测试拓扑: [……] 阅读全文 Read More
日常工作中用到的tar命令总结 By duncan21Posted on 2016 年 12 月 5 日2017 年 1 月 25 日Posted in LinuxTagged tarNo Comments on 日常工作中用到的tar命令总结 #将指定文件中的文件进行打包,并放到/root目录下 tar -T mr_zx_url.tx[......]阅读全文 Read More
记录一次MySQL主从同步时候出现的错误代码1449 By duncan21Posted on 2016 年 12 月 5 日Posted in MySqlTagged mysql1499No Comments on 记录一次MySQL主从同步时候出现的错误代码1449 今天在做主从同步的时候,在show slave status\g的时候出现下面的错误: The[……] 阅读全文 Read More
分享工作中shell脚本监控服务器负载并通过邮件报警 By duncan21Posted on 2016 年 11 月 22 日Posted in ShellTagged loadNo Comments on 分享工作中shell脚本监控服务器负载并通过邮件报警 因为最近公司的几台php的服务器,到晚上9-10点的时候负载有点偏高,所以boss要求当服务器的lo[……] 阅读全文 Read More
[转]CentOS7修改服务器主机名方法 By duncan21Posted on 2016 年 11 月 21 日Posted in LinuxTagged centos7No Comments on [转]CentOS7修改服务器主机名方法 CentOS7修改服务器主机名方法 CentOS7下修改主机名 第一种:ho[……] 阅读全文 Read More
[安全预警]Linux服务器的TCP连接实施方案存在高危安全漏洞 By duncan21Posted on 2016 年 11 月 14 日2016 年 11 月 14 日Posted in securityNo Comments on [安全预警]Linux服务器的TCP连接实施方案存在高危安全漏洞 您好!近日,腾讯云安全发现Linux服务器的TCP连接实施方案存在高危安全漏洞(漏洞编号:CVE-[……] 阅读全文 Read More
升级网站支持 ALPN By duncan21Posted on 2016 年 11 月 11 日2016 年 11 月 11 日Posted in LinuxTagged openssl, openssl升级No Comments on 升级网站支持 ALPN 先来回顾一下,浏览器在访问 HTTPS 网站时,如何得知服务端是否支持 HTTP/2?答案是借助 H[……] 阅读全文 Read More
记录一次生产环境下的主从不同步的案例 By duncan21Posted on 2016 年 11 月 7 日Posted in MySqlTagged 主从不同步No Comments on 记录一次生产环境下的主从不同步的案例 //环境: centos6 mysql5.1* //从库不同步了 mysql> sh[......]阅读全文 Read More
[安全警告]MySQL/MariaDB/PerconaDB数据库中发现条件竞争漏洞 By duncan21Posted on 2016 年 11 月 7 日2021 年 4 月 14 日Posted in securityNo Comments on [安全警告]MySQL/MariaDB/PerconaDB数据库中发现条件竞争漏洞 通过外部报告发现,在MySQL,MariaDB和PerconaDB数据库中发现条件竞争漏洞,该漏洞允[……] 阅读全文 Read More