<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>心灵咖啡 - 网建/代码</title>
    <link>http://bj.xlkf.cn/forum-127-1.html</link>
    <description>Latest 20 threads of 网建/代码</description>
    <copyright>Copyright(C) 心灵咖啡</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 18 May 2026 12:08:18 +0000</lastBuildDate>
    <ttl>180</ttl>
    <image>
      <url>http://bj.xlkf.cn/static/image/common/logo_88_31.gif</url>
      <title>心灵咖啡</title>
      <link>http://bj.xlkf.cn/</link>
    </image>
    <item>
      <title>论坛搬家后表只读问题(1036) Table \'common_block\' is read only</title>
      <link>http://bj.xlkf.cn/thread-16516-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Fri, 08 May 2020 15:45:39 +0000</pubDate>
    </item>
    <item>
      <title>删除&quot;自豪地采用 WordPress&quot;</title>
      <link>http://bj.xlkf.cn/thread-16474-1-1.html</link>
      <description><![CDATA[采用的是twentyseventeen主题

打开WordPress\\wp-content\\themes\\twentyseventeen\\footer.php

发现如下代码删除后并保存即可]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Sun, 11 Aug 2019 07:36:10 +0000</pubDate>
    </item>
    <item>
      <title>限制用户组收听功能</title>
      <link>http://bj.xlkf.cn/thread-16470-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Fri, 26 Jul 2019 10:07:34 +0000</pubDate>
    </item>
    <item>
      <title>PHP mysql_real_escape_string() 函数防SQL注入</title>
      <link>http://bj.xlkf.cn/thread-16469-1-1.html</link>
      <description><![CDATA[PHP mysql_real_escape_string() 函数防SQL注入



定义和用法

mysql_real_escape_string() 函数转义 SQL 语句中使用的字符串中的特殊字符。

下列字符受影响：

\\x00
\\n
\\r
\\
\'
\&quot;
\\x1a
如果成功，则该函数返回被转义的字符串。如果失败，则返回 fals ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Thu, 18 Jul 2019 11:44:15 +0000</pubDate>
    </item>
    <item>
      <title>修改服务器上传大小限制</title>
      <link>http://bj.xlkf.cn/thread-16435-1-1.html</link>
      <description><![CDATA[discuz 论坛 附件大小限制2M
初始安装的discuz论坛附件大小默认限制为2M。

首先，需要修改服务器空间配置的php参数允许上传附件的大小。php.ini的位置在C盘windows或system32目录下：
post_max_size = 8M （表单提交的最大限制，此项不是限制上传单个文件的大小 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Fri, 18 Jan 2019 06:09:22 +0000</pubDate>
    </item>
    <item>
      <title>DX熊掌号页面改造改造</title>
      <link>http://bj.xlkf.cn/thread-16433-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Wed, 16 Jan 2019 12:11:29 +0000</pubDate>
    </item>
    <item>
      <title>discuz! X3.2(DZ3.2)后台突然登录慢的解决</title>
      <link>http://bj.xlkf.cn/thread-16432-1-1.html</link>
      <description><![CDATA[最近几日DZ后台突然出现登录巨慢的情况 ，开始一直以为是登录逻辑哪里出了问题导致，折腾许久并未发现问题，后来发现登录进去后不管在哪个操作界面一刷新主界面就出现慢的情况，这样基本确定问题应该在框架界面上，于是跟了一下框架页的逻辑，最终发现问题出在升级检查 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Tue, 15 Jan 2019 22:48:58 +0000</pubDate>
    </item>
    <item>
      <title>nginx的access.log与error.log</title>
      <link>http://bj.xlkf.cn/thread-16430-1-1.html</link>
      <description><![CDATA[查找日志存放地址
find / -name nginx.conf


根据你找出来的地址，尽心vi编辑，进入nginx.conf文件进行查找路径

vi /usr/servers/nginx/conf/nginx.conf


从而找到，我机子的两个日志存放地点：
/var/logdata/nginx/access.log
/var/logdata/nginx/error. ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Mon, 14 Jan 2019 06:41:10 +0000</pubDate>
    </item>
    <item>
      <title>apache的access_log与error_log</title>
      <link>http://bj.xlkf.cn/thread-16429-1-1.html</link>
      <description><![CDATA[1. access_log 访问日志
access_log为访问日志,记录所有对apache服务器进行请求的访问,它的位置和内容由CustomLog指令控制,LogFormat指令可以用来简化该日志的内容和格式 

2. error_log 错误日志
error_log为错误日志,记录下任何错误的处理请求,它的位置和内容由Er ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Mon, 14 Jan 2019 06:34:33 +0000</pubDate>
    </item>
    <item>
      <title>Too many connections</title>
      <link>http://bj.xlkf.cn/thread-16427-1-1.html</link>
      <description><![CDATA[连接数超过了 MySQL 设置的值Too many connections，与 max_connections 和 wait_timeout  都有关系。wait_timeout 的值越大，连接的空闲等待就越长，这样就会造成当前连接数越大。

解决方法：

1、虚拟主机用户请联系空间商优化 MySQL 服务器的配置；
2、独立主 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Sat, 12 Jan 2019 09:24:08 +0000</pubDate>
    </item>
    <item>
      <title>删除日志 清空回收站</title>
      <link>http://bj.xlkf.cn/thread-16426-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Wed, 09 Jan 2019 19:25:28 +0000</pubDate>
    </item>
    <item>
      <title>DX注册邮件验证出现死循环临时解决方案</title>
      <link>http://bj.xlkf.cn/thread-16422-1-1.html</link>
      <description><![CDATA[Discuz! X3 注册邮件验证出现死循环临时解决方案


经测试部份邮件链接注册出现解析失败的问题，解决方法为：

\\source\\class\\class_member.php

查找：替换：只能解决电脑版，手机版依然。]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Mon, 24 Dec 2018 08:23:43 +0000</pubDate>
    </item>
    <item>
      <title>service mysqld start时出现MySQL server PID file could not be found 错误的解决</title>
      <link>http://bj.xlkf.cn/thread-10141-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Sun, 03 Jun 2018 18:21:04 +0000</pubDate>
    </item>
    <item>
      <title>程序更新录</title>
      <link>http://bj.xlkf.cn/thread-6842-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Sat, 09 Sep 2017 03:51:00 +0000</pubDate>
    </item>
    <item>
      <title>Linux 带宽异常跑满的解决方案</title>
      <link>http://bj.xlkf.cn/thread-6830-1-1.html</link>
      <description><![CDATA[问题原因

可能是恶意程序问题，或者是部分 IP 恶意访问导致，亦可能是服务遭到了CC攻击

处理办法

使用 iftop 工具排查
使用 nethogs 进行排查
首先需要确定是哪一张网卡的带宽跑满，可以通过sar -n DEV 1 5 命令来获取网卡级别的流量图，命令中 1 5 表示每 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Wed, 30 Aug 2017 18:18:04 +0000</pubDate>
    </item>
    <item>
      <title>生成监控CPU和内存的日志</title>
      <link>http://bj.xlkf.cn/thread-6829-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Wed, 30 Aug 2017 17:43:51 +0000</pubDate>
    </item>
    <item>
      <title>防止网页被搜索引擎爬虫和网页采集器收录的方法汇总</title>
      <link>http://bj.xlkf.cn/thread-6726-1-1.html</link>
      <description><![CDATA[转载：源作者不详。

下面的这些方法是可以标本兼治的：
1、限制IP地址单位时间的访问次数
分析：没有哪个常人一秒钟内能访问相同网站5次，除非是程序访问，而有这种喜好的，就剩下搜索引擎爬虫和讨厌的采集器了。
弊端：一刀切，这同样会阻止搜索引擎对网站的收 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Sat, 15 Jul 2017 14:04:29 +0000</pubDate>
    </item>
    <item>
      <title>修改PHP上传文件大小限制</title>
      <link>http://bj.xlkf.cn/thread-6705-1-1.html</link>
      <description><![CDATA[PHP上传文件默认一般都是有限制的， 
有的时候我们需要上传大的文件，那么怎么修改PHP上传限制的大小呢 

1. 一般的php文件上传,除非文件很小.就像一个5M的文件, 
   很可能要超过一分钟才能上传完. 但在php中,默认的该页最久执行时间为 30 秒.就是说超过30秒, 
   ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Tue, 11 Jul 2017 06:25:00 +0000</pubDate>
    </item>
    <item>
      <title>DX贴内音乐不能播放的解决</title>
      <link>http://bj.xlkf.cn/thread-6690-1-1.html</link>
      <description><![CDATA[DX2.5-3.2有不少朋友反应播放器不正常，要么空白，要么不能播放。
比较有效的一个方法是用官方安装包里player.swf覆盖，因为对比发现很多出现问题的player.swf都是15K多，而官方的才5K多，mp3player.swf也有这问题。

原因不明，我记忆中，好像有哪一次的漏洞补丁好 ...]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Tue, 04 Jul 2017 22:09:30 +0000</pubDate>
    </item>
    <item>
      <title>linux 增加/修改虚拟内存 增加swap分区</title>
      <link>http://bj.xlkf.cn/thread-6642-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>网建/代码</category>
      <author>蓝忧无泪</author>
      <pubDate>Mon, 12 Jun 2017 13:17:08 +0000</pubDate>
    </item>
  </channel>
</rss>