系统出现kernel: audit: backlog limit exceeded提示 By duncan21Posted on 2017 年 1 月 26 日Posted in LinuxTagged audit, backlogNo Comments on 系统出现kernel: audit: backlog limit exceeded提示 今天早上上班以来,发现一台服务器无法ssh,果断找到了机房重启,机房重启的过程中,大量的 backlog limit exceeded 错误,如下图: 我就马上找了一些关于audit的信[……] 阅读全文 Read More
解决手机浏览器提示网站证书无效错误提示 By duncan21Posted on 2017 年 1 月 20 日2021 年 4 月 14 日Posted in LinuxTagged ssl, 浏览器错误No Comments on 解决手机浏览器提示网站证书无效错误提示 网站使用证书已经很久了,pc端打开没有任何问题,但是发现在手机端打开,浏览器会提示证书有问题: 通过工具检测,发现是证书链不完整: 我以comodo证书[……] 阅读全文 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.html #升级openssl 可以参考:https://teddylu.[……] 阅读全文 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 count(*) from sys.tables as t, sysindexes as i whe[......]阅读全文 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在当初安装的时候没有编译pdo, 同时,由于是线上服务,不能重新编译php所以,考虑使用php的扩展编译方法来实现。[……] 阅读全文 Read More
windows下强制删除某个正在使用的文件 By duncan21Posted on 2017 年 1 月 17 日Posted in computingTagged delNo Comments on windows下强制删除某个正在使用的文件 与linux不同,正常情况下,是不能删除一下正在使用中的文件,比如iis的日志文件,线上的生产环境,是不能随便暂停或者关闭iss,所以需要强制删除文件。域名如下: del /s/f/q f:/a[……] 阅读全文 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,title,keywords,litpic FROM `health_archives` WHER[......]阅读全文 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 number “” in “/var/run/nginx.pid” 网上找的的解释:[……] 阅读全文 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 Derived from Red Hat Enterprise Linux 7.1 (Sourc[……] 阅读全文 Read More
如何更换linode机房的centos7的内核? By duncan21Posted on 2016 年 12 月 8 日2017 年 4 月 7 日Posted in LinuxTagged 跟换内核No Comments on 如何更换linode机房的centos7的内核? 终于用上了Linode的机房的vps,弄好了系统之后发现,内核不支持pptp.机房技术答复说,需要更换系统内核,我已centos7为例,其他版本的系统请参考文章结尾处的链接 下面是操作步骤:[……] 阅读全文 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.cookie_httponly’, true); @ini_set(‘session.cookie_[……] 阅读全文 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 测试拓扑: #在mysql-amoeba上操作 amoeba需要java的支持,首先安装java #[……] 阅读全文 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.txt -czvf ~/images.tar.gz #查看tar文件中的文件数量 tar -z[......]阅读全文 Read More
记录一次MySQL主从同步时候出现的错误代码1449 By duncan21Posted on 2016 年 12 月 5 日Posted in MySqlTagged mysql1499No Comments on 记录一次MySQL主从同步时候出现的错误代码1449 今天在做主从同步的时候,在show slave status\g的时候出现下面的错误: The user specified as a definer (‘root’@’192.168.1.11[……] 阅读全文 Read More
分享工作中shell脚本监控服务器负载并通过邮件报警 By duncan21Posted on 2016 年 11 月 22 日Posted in ShellTagged loadNo Comments on 分享工作中shell脚本监控服务器负载并通过邮件报警 因为最近公司的几台php的服务器,到晚上9-10点的时候负载有点偏高,所以boss要求当服务器的load,每5分钟负载的负载达到25的时候,发一份邮件 1.安装并配置mail #如果没有m[……] 阅读全文 Read More
[转]CentOS7修改服务器主机名方法 By duncan21Posted on 2016 年 11 月 21 日Posted in LinuxTagged centos7No Comments on [转]CentOS7修改服务器主机名方法 CentOS7修改服务器主机名方法 CentOS7下修改主机名 第一种:hostname 主机名 01.hostname 主机名称 这种方式,只能修改临时的主机名,[……] 阅读全文 Read More
[安全预警]Linux服务器的TCP连接实施方案存在高危安全漏洞 By duncan21Posted on 2016 年 11 月 14 日2016 年 11 月 14 日Posted in securityNo Comments on [安全预警]Linux服务器的TCP连接实施方案存在高危安全漏洞 您好!近日,腾讯云安全发现Linux服务器的TCP连接实施方案存在高危安全漏洞(漏洞编号:CVE-2016-5696),攻击者可利用该漏洞来劫持未加密Web流量,或对SSH之类的加密服务进行重置,详[……] 阅读全文 Read More
升级网站支持 ALPN By duncan21Posted on 2016 年 11 月 11 日2016 年 11 月 11 日Posted in LinuxTagged openssl, openssl升级No Comments on 升级网站支持 ALPN 先来回顾一下,浏览器在访问 HTTPS 网站时,如何得知服务端是否支持 HTTP/2?答案是借助 HTTP/2 的协议协商机制:在 HTTP/2 Over HTTP 中,可以使用 HTTP 的 Upg[……] 阅读全文 Read More
记录一次生产环境下的主从不同步的案例 By duncan21Posted on 2016 年 11 月 7 日Posted in MySqlTagged 主从不同步No Comments on 记录一次生产环境下的主从不同步的案例 //环境: centos6 mysql5.1* //从库不同步了 mysql> show slave status\G *************************** 1.[......]阅读全文 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数据库中发现条件竞争漏洞,该漏洞允许本地用户使用低权限(CREATE/INSERT/SELECT权限)帐号提升权限到数据库系统用户(通[……] 阅读全文 Read More