<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>The Day</title><link>http://www.fishinfish.com/</link><description>Love is nothing without you,love is everything you do.</description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 100427</generator><language>zh-CN</language><copyright>Copyright © 2006-2010 www.fishinfish.com Some Rights Reserved.Powered by Z-blog&amp;amp;nbsp;&amp;amp;nbsp;</copyright><pubDate>Tue, 11 Oct 2011 11:47:22 +0800</pubDate><item><title>在php中禁用较危险的函数</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/281.html</link><pubDate>Fri, 05 Aug 2011 18:11:32 +0800</pubDate><guid>http://www.fishinfish.com/post/281.html</guid><description><![CDATA[<p><p>在php.ini中禁用下面的函数<br />disable_functions =passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,ini_set,dl,pfsockopen,symlink,popen,putenv<br />说明:<br />passthru()<br />功能描述:允许执行一个外部程序并回显输出,类似于 exec().<br />危险等级:高<br />exec()<br />功能描述:允许执行一个外部程序(如 UNIX Shell 或 CMD 命令等).<br />危险等级:高<br />... ...</p></p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/281.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=281</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=281&amp;key=22ab4b2d</trackback:ping></item><item><title>Linux中Apache虚拟主机禁止跨目录访问</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/280.html</link><pubDate>Fri, 05 Aug 2011 17:15:22 +0800</pubDate><guid>http://www.fishinfish.com/post/280.html</guid><description><![CDATA[<p>&nbsp;当我们在LINUX中用Apache开设虚拟空间的时候,应该限制每个空间的文件只能访问指定的目录.防止网站被传木马后所有文件夹都能被访问.</p><p>方法: 在对应虚拟空间的配置文件中使用php_admin_value open_basedir 来限制PHP所能访问的目录</p><p>例:<br />&lt;VirtualHost *:80&gt;<br />&nbsp;&nbsp; &nbsp;ServerAdmin webmaster@abc.com<br />...</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/280.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=280</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=280&amp;key=68726d5c</trackback:ping></item><item><title>LINUX中独立记录保存每个用户的命令操作</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/279.html</link><pubDate>Wed, 20 Jul 2011 17:37:12 +0800</pubDate><guid>http://www.fishinfish.com/post/279.html</guid><description><![CDATA[<p>独立记录保存每个登入IP的命令操作<br />查看/etc/profile 和&nbsp;~/.bash_profile这两文件中HISTSIZE和HISTFILESIZE的设置不为0<br />把以下内容加入到/etc/profile中<br />#history<br />export HISTTIMEFORMAT=&quot;[%Y.%m.%d %H:%M:%S]&quot;<br />USER_IP=`who -u am i 2&gt;/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'`<br />HISTDIR=/var/log/history_bk<br />if [ -z $USER_IP ]<br />then<br />USER_IP=`hostname`<br />fi<br />if [ ! -d $HISTDIR ]<br />then<br />mkdir -p $HISTDIR</p><p>... ...</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/279.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=279</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=279&amp;key=ed225920</trackback:ping></item><item><title>[转]在线生成EditPlus注册码</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/278.html</link><pubDate>Wed, 13 Jul 2011 15:52:04 +0800</pubDate><guid>http://www.fishinfish.com/post/278.html</guid><description><![CDATA[<p>新下载了个EditPlus, GOOGLE&nbsp;EditPlus注册码的时候发现的这个. 原文地址:&nbsp;EditPlus注册码在线生成<br />经测试有效,转载来方便下次使用以防原地址失效.</p><p><script type="text/javascript" src="../UPLOAD/2011/7/editpluskeygen.js"></script> <span>Username:</span><br /><input name="username" type="text" id="username" size="50" />  <input type="submit" name="generate" id="generate" value="Generate" onclick="generate_editplus_regcode();" />  <br /><span>Regcode:</span><br /><input name="regcode" type="text" id="regcode" size="50" readonly="readonly" /><br />用法 : 在Username中输入想要的名字后点击Generate按钮生成注册码.<br />&nbsp;&nbsp; &nbsp;注 : 不支持中文字符,原作者懒的用正则表达式验证.</p>]]></description><category>★ 鱼泡</category><comments>http://www.fishinfish.com/post/278.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=278</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=278&amp;key=1f79d2d5</trackback:ping></item><item><title>wordpress首页打不开解决方法</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/277.html</link><pubDate>Wed, 29 Jun 2011 16:22:47 +0800</pubDate><guid>http://www.fishinfish.com/post/277.html</guid><description><![CDATA[<p>服务器正常,其它页面正常.但是wordpress首页打不开.可能是因为wordpress判断跳转造成的.<br />网站中一个页面存在多个网址不利于SEO优化,wordpress针对这个为每个页面做了次判断跳转.<br />代码在wp-includes/template-loader.php中<br />打开template-loader.php,头部可看到如下代码:</p><p>if ( defined('WP_USE_THEMES') &amp;&amp; WP_USE_THEMES )<br />do_action('template_redirect');</p><p>注释掉或删除这两行代码就可以解决首页打不开的问题.</p>]]></description><category>★ 鱼泡</category><comments>http://www.fishinfish.com/post/277.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=277</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=277&amp;key=e1e3a037</trackback:ping></item><item><title>屏蔽优酷上视频里的广告</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/276.html</link><pubDate>Fri, 17 Jun 2011 20:41:19 +0800</pubDate><guid>http://www.fishinfish.com/post/276.html</guid><description><![CDATA[<p>&nbsp;NM一个几十秒1分钟的视频开头是个十几秒的广告......... <br />有时候一个广告完了还再来个短广告..... <br />受不了了........ <br />把下面的内容加入到&nbsp;C:\Windows\System32\drivers\etc 下的 hosts 中.</p><p># 屏蔽优酷广告 127.0.0.1 atm.youku.com <br /># 屏蔽优酷广告<br />127.0.0.1 atm.youku.com<br />127.0.0.1 Fvid.atm.youku.com<br />127.0.0.1 html.atm.youku.com<br />127.0.0.1 valb.atm.youku.com<br />127.0.0.1 valf.atm.youku.com<br />127.0.0.1 valo.atm.youku.com<br />... ...</p>]]></description><category>★ 鱼泡</category><comments>http://www.fishinfish.com/post/276.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=276</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=276&amp;key=f788cceb</trackback:ping></item><item><title>PureFTPd pure-ftpd.conf说明和添加删除虚拟用户</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/275.html</link><pubDate>Fri, 17 Jun 2011 12:05:35 +0800</pubDate><guid>http://www.fishinfish.com/post/275.html</guid><description><![CDATA[<p><strong>添加用户</strong><br /># /usr/local/pure-ftpd/bin/pure-pw useradd 用户名 -u apache -d 目录路径<br />-u 关联apache用户 -g 关联系统组 -d 锁定用户目录 -D 不锁定用户目录</p><p><strong>删除用户</strong><br /># /usr/local/pure-ftpd/bin/pure-pw userdel 用户名</p><p>更改密码<br /># /usr/local/pure-ftpd/bin/pure-pw passwd 用户名</p><p>显示用户信息<br /># /usr/local/pure-ftpd/bin/pure-pw show 用户名</p><p>更改用户属性<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -n '' ：禁用文件配额<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -N '' ：禁用文件大小配额<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -q '' -Q '' ：禁用 ratio<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -t '' ：禁用下载带宽限制<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -T '' ：禁用上传带宽限制<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; &lt;-i,-I,-r or -R&gt; '' ：禁用 IP 过滤<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -z '' ：禁用时间段约束<br /># /usr/local/pure-ftpd/bin/pure-pw usermod &lt;user&gt; -y '' ：禁用并发数限制</p><p><strong>提交更改,更新pureftpd.pdb 使所做的更改生效</strong>&nbsp;<br /># /usr/local/pure-ftpd/bin/pure-pw mkdb</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/275.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=275</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=275&amp;key=0a520814</trackback:ping></item><item><title>PureFTPd的安装配置</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/274.html</link><pubDate>Fri, 17 Jun 2011 11:32:20 +0800</pubDate><guid>http://www.fishinfish.com/post/274.html</guid><description><![CDATA[<p>在http://download.pureftpd.org/pub/pure-ftpd/releases/中找个新版的下载到服务器上.<br />这边用的是pure-ftpd-1.0.32.tar.gz<br /># tar zxvf&nbsp;pure-ftpd-1.0.32.tar.gz<br /># cd&nbsp;pure-ftpd-1.0.32<br /># ./configure --prefix=/usr/local/pure-ftpd/ --with-language=simplified-chinese --with-everything<br />设置安装目录为/usr/local/pure-ftpd/ 用了偷懒参数&nbsp;--with-everything<br /># make<br /># make install<br />... ...</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/274.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=274</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=274&amp;key=3f7b63d9</trackback:ping></item><item><title>服务器IIS向外发送大量数据占满带宽攻击别人</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/273.html</link><pubDate>Wed, 15 Jun 2011 19:39:38 +0800</pubDate><guid>http://www.fishinfish.com/post/273.html</guid><description><![CDATA[<p>接到一通知,说这边一服务器在攻击别人.<br />这是一台2003服务器.远程上服务器发现带宽被占满了,查出是IIS一直对外发送数据.<br />查看C:\WINDOWS\system32\LogFiles\HTTPERR下最新的日志.搜索 port 有如下的记录:<br />port=80&amp;time=99999999999999999999999999<br />找到对应网站文件,查找该网站下别的可疑文件.通知用户.</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/273.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=273</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=273&amp;key=b6410f28</trackback:ping></item><item><title>MySQL批量optimization优化表</title><author>fish@fishinfish.com (0xC8D8)</author><link>http://www.fishinfish.com/post/272.html</link><pubDate>Sun, 12 Jun 2011 18:35:18 +0800</pubDate><guid>http://www.fishinfish.com/post/272.html</guid><description><![CDATA[<p>sh xxx.sh<br />输入root密码<br />输入数据文件路径<br />日志位置/tmp/optimize.log<br />sh文件内容<br /><br />===============</p><p>#!/bin/sh</p><p>echo &quot;Please input MySQL's root password!&quot; ... ...</p>]]></description><category>★ PC_Health</category><comments>http://www.fishinfish.com/post/272.html#comment</comments><wfw:comment>http://www.fishinfish.com/</wfw:comment><wfw:commentRss>http://www.fishinfish.com/feed.asp?cmt=272</wfw:commentRss><trackback:ping>http://www.fishinfish.com/cmd.asp?act=tb&amp;id=272&amp;key=5707486e</trackback:ping></item></channel></rss>

