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