??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品日韩专区silk,国产午夜亚洲精品理论片不卡 ,亚洲色欲或者高潮影院http://m.tkk7.com/mmwy/category/4889.htmlwuyuzh-cnMon, 19 Mar 2007 08:20:48 GMTMon, 19 Mar 2007 08:20:48 GMT60win2003上iis与tomcat的整?/title><link>http://m.tkk7.com/mmwy/archive/2007/03/19/104743.html</link><dc:creator>mmwy</dc:creator><author>mmwy</author><pubDate>Mon, 19 Mar 2007 07:39:00 GMT</pubDate><guid>http://m.tkk7.com/mmwy/archive/2007/03/19/104743.html</guid><wfw:comment>http://m.tkk7.com/mmwy/comments/104743.html</wfw:comment><comments>http://m.tkk7.com/mmwy/archive/2007/03/19/104743.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/mmwy/comments/commentRss/104743.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mmwy/services/trackbacks/104743.html</trackback:ping><description><![CDATA[在apache|站上已l有很详l的介绍<br />http://tomcat.apache.org/connectors-doc/reference/iis.html<br /><br />有几Ҏ意的Q?br />1、除了照文档的例子在注册?b>"HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0"</b>建相应键值外Q还可以?b>isapi_redirect.dll</b>所在的目录?b>“isapi_redirect.properties?/b>文g?br /><br />2、extension_uri=/jakarta/isapi_redirect.dll<br />q个extension_uri写成什么\径,得在iis站点中徏相应名字的虚拟目录(执行权限Q,以保?jakarta/isapi_redirect.dll能被正常讉K到?br /><br />3、除文上介l的几大步(注册表、网站、虚拟\径等Q以外,win2003 iis上还得做下面q个步骤<br /><br /><strong>新徏应用E序扩展</strong><br />在IIS理器左侧网站下面选中Web服务扩展Q添加一个新的Web服务扩展Q扩展名为jakarta,d要求得文件ؓD:\Tomcat5.0\bin\jakart\isapi_redirect.dll,q设|扩展状态ؓ允许?br />Q注Q来?<a title="http://www.cnrui.cn/blog/article.asp?id=179" >http://www.cnrui.cn/blog/article.asp?id=179</a> Q?br /><br /><br /><br /><br /><img src ="http://m.tkk7.com/mmwy/aggbug/104743.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mmwy/" target="_blank">mmwy</a> 2007-03-19 15:39 <a href="http://m.tkk7.com/mmwy/archive/2007/03/19/104743.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>W记Q?0061015在CentOS4.3上搭建PHP服务器环境(GD、libmcrypt、mysql、Oracle10g支持Q?/title><link>http://m.tkk7.com/mmwy/archive/2006/10/15/75207.html</link><dc:creator>mmwy</dc:creator><author>mmwy</author><pubDate>Sat, 14 Oct 2006 18:46:00 GMT</pubDate><guid>http://m.tkk7.com/mmwy/archive/2006/10/15/75207.html</guid><wfw:comment>http://m.tkk7.com/mmwy/comments/75207.html</wfw:comment><comments>http://m.tkk7.com/mmwy/archive/2006/10/15/75207.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/mmwy/comments/commentRss/75207.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mmwy/services/trackbacks/75207.html</trackback:ping><description><![CDATA[ <b>使用的安装包Q?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">cronolog-</span><span style="color: rgb(0, 0, 0);">1.6.2</span><span style="color: rgb(0, 0, 0);">.tar.gz                              <br /></span><span style="color: rgb(0, 128, 128);"> 2</span><span style="color: rgb(0, 0, 0);">httpd-</span><span style="color: rgb(0, 0, 0);">2.0.59</span><span style="color: rgb(0, 0, 0);">.tar.gz                                <br /></span><span style="color: rgb(0, 128, 128);"> 3</span><span style="color: rgb(0, 0, 0);">instantclient-basic-linux32-</span><span style="color: rgb(0, 0, 0);">10.2.0.2</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">20060331</span><span style="color: rgb(0, 0, 0);">.zip  <br /></span><span style="color: rgb(0, 128, 128);"> 4</span><span style="color: rgb(0, 0, 0);">instantclient-sdk-linux32-</span><span style="color: rgb(0, 0, 0);">10.2.0.2</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">20060331</span><span style="color: rgb(0, 0, 0);">.zip    <br /></span><span style="color: rgb(0, 128, 128);"> 5</span><span style="color: rgb(0, 0, 0);">libmcrypt-</span><span style="color: rgb(0, 0, 0);">2.5.7</span><span style="color: rgb(0, 0, 0);">.tar.gz                             <br /></span><span style="color: rgb(0, 128, 128);"> 6</span><span style="color: rgb(0, 0, 0);">mhash-</span><span style="color: rgb(0, 0, 0);">0.9.7.1</span><span style="color: rgb(0, 0, 0);">.tar.gz                               <br /></span><span style="color: rgb(0, 128, 128);"> 7</span><span style="color: rgb(0, 0, 0);">mysql-</span><span style="color: rgb(0, 0, 0);">3.23.58</span><span style="color: rgb(0, 0, 0);">.tar.gz                               <br /></span><span style="color: rgb(0, 128, 128);"> 8</span><span style="color: rgb(0, 0, 0);">php-</span><span style="color: rgb(0, 0, 0);">4.4.4</span><span style="color: rgb(0, 0, 0);">.tar.gz     </span><span style="color: rgb(0, 0, 0);"></span></div></b> <b> <br />参考文?/b>Q?br /><ol><li><a >?Linux ?Windows 安装 PHP ?Oracle 10g Instant Client</a></li><li><a >Connecting to Oracle10g from PHP using OCI-8 (Linux)</a></li></ol><b>与文有出处的地?/b>Q?br /><ol><li>otn上只能下到zip格式的oracle 10g instant client basic和sdk包。解压羃后,全部攑ֈinstantclient_10_2目录下?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">root@localhost sdk</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"># ls -l ..<br />total </span><span style="color: rgb(0, 0, 0);">115948</span><span style="color: rgb(0, 0, 0);"><br />-r--r--r--  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root  </span><span style="color: rgb(0, 0, 0);">1594191</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> classes12.jar<br />-rwxrwxr-x  </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);"> root root </span><span style="color: rgb(0, 0, 0);">18774535</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libclntsh.so<br />-rwxrwxr-x  </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);"> root root </span><span style="color: rgb(0, 0, 0);">18774535</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libclntsh.so</span><span style="color: rgb(0, 0, 0);">.10.1</span><span style="color: rgb(0, 0, 0);"><br />-r-xr-xr-x  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root  </span><span style="color: rgb(0, 0, 0);">5623929</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libnnz10.so<br />-rwxrwxr-x  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root  </span><span style="color: rgb(0, 0, 0);">1398088</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libocci.so</span><span style="color: rgb(0, 0, 0);">.10.1</span><span style="color: rgb(0, 0, 0);"><br />-rwxrwxr-x  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root </span><span style="color: rgb(0, 0, 0);">70690282</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libociei.so<br />-r-xr-xr-x  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root   </span><span style="color: rgb(0, 0, 0);">119919</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> libocijdbc10.so<br />-r--r--r--  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root  </span><span style="color: rgb(0, 0, 0);">1540457</span><span style="color: rgb(0, 0, 0);"> Feb  </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);"> ojdbc14.jar<br />drwxr-xr-x  </span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);"> root root     </span><span style="color: rgb(0, 0, 0);">4096</span><span style="color: rgb(0, 0, 0);"> Oct </span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">27</span><span style="color: rgb(0, 0, 0);"> sdk<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">root@localhost sdk</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"># ls -l<br />total </span><span style="color: rgb(0, 0, 0);">324</span><span style="color: rgb(0, 0, 0);"><br />drwxr-xr-x  </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);"> root root   </span><span style="color: rgb(0, 0, 0);">4096</span><span style="color: rgb(0, 0, 0);"> Oct </span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">27</span><span style="color: rgb(0, 0, 0);"> demo<br />drwxr-xr-x  </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);"> root root   </span><span style="color: rgb(0, 0, 0);">4096</span><span style="color: rgb(0, 0, 0);"> Oct </span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">27</span><span style="color: rgb(0, 0, 0);"> include<br />-r-xr-xr-x  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root    </span><span style="color: rgb(0, 0, 0);">346</span><span style="color: rgb(0, 0, 0);"> Oct </span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">27</span><span style="color: rgb(0, 0, 0);"> ott<br />-rw-r--r--  </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> root root </span><span style="color: rgb(0, 0, 0);">298274</span><span style="color: rgb(0, 0, 0);"> Oct </span><span style="color: rgb(0, 0, 0);">17</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">27</span><span style="color: rgb(0, 0, 0);"> ottclasses.zip</span></div></li><li><span style="color: rgb(0, 0, 0);">php4.4.4已经提供?-with-oci8-instant-client参数的支持,同时修复了相兌丁,因此Q文中为php打补丁、重?/span>“configure”脚本的步骤可以省略?/li></ol><b>环境变量</b>:<br /><ol><li>在LD_LIBRARY_PATH中添?span style="color: rgb(0, 0, 0);">oracle 10g instant client的\径?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">export LD_LIBRARY_PATH</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/instantclient_10_2/:${LD_LIBRARY_PATH}</span></div></span></li><li><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">讄TNS_ADMIN为oracle tnsname.ora文g所在目录?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">export TNS_ADMIN</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/u01/app/oracle/product/10g/network/admin/</span></div></span></span></li></ol><b>~译脚本</b>Q?br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">./configure \<br />--prefix</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/php-</span><span style="color: rgb(0, 0, 0);">4.4.4</span><span style="color: rgb(0, 0, 0);"> \<br />--with-apxs2</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/httpd-</span><span style="color: rgb(0, 0, 0);">2.0.59</span><span style="color: rgb(0, 0, 0);">/bin/apxs \<br />--with-mysql</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/mysql-</span><span style="color: rgb(0, 0, 0);">3.23.58</span><span style="color: rgb(0, 0, 0);"> \<br />--with-mcrypt</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/libmcrypt-</span><span style="color: rgb(0, 0, 0);">2.5.7</span><span style="color: rgb(0, 0, 0);"> \<br />--with-mhash</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/mhash-</span><span style="color: rgb(0, 0, 0);">0.9.7.1</span><span style="color: rgb(0, 0, 0);"> \<br />--with-gd --with-zlib \<br />--with-oci8-instant-client</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">/www/server/instantclient_10_2<br /></span></div>注:需要用ln命o为libclntsh.so.10.1创徏一个名?b>libclntsh.so</b>的连接,否则在configureq程中将会出现error:Link xxxx not found的错误。(<a >http://forums.oracle.com/forums/thread.jspa?messageID=1203218&#1203218</a>Q?br /><br /><b>试</b>Q?br /><ol><li>安装成功的话Q在phpinfo()信息中可以看到相应信?div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">OCI8 Support                  enabled<br />Revision                      $Revision: </span><span style="color: rgb(0, 0, 0);">1.183.2.18.2.3</span><span style="color: rgb(0, 0, 0);"> $<br />Oracle Version                </span><span style="color: rgb(0, 0, 0);">10.1</span><span style="color: rgb(0, 0, 0);"><br />Compile-time ORACLE_HOME      /www/server/instantclient_10_2<br />Libraries Used                no value</span></div></li><li><span style="color: rgb(0, 0, 0);">试代码<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 0);"><?</span><span style="color: rgb(0, 0, 0);">php <br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(128, 0, 128);">$conn</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> OCILogon(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">username</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">password</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">//127.0.0.1:1521/sid</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(128, 0, 128);">$query</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">select table_name from user_tables</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(128, 0, 128);">$stid</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> OCIParse(</span><span style="color: rgb(128, 0, 128);">$conn</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 128);">$query</span><span style="color: rgb(0, 0, 0);">);<br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">OCIExecute(</span><span style="color: rgb(128, 0, 128);">$stid</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);"> OCI_DEFAULT);<br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(128, 0, 128);">$succ</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> OCIFetchInto(</span><span style="color: rgb(128, 0, 128);">$stid</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 128);">$row</span><span style="color: rgb(0, 0, 0);">)) {<br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">foreach</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(128, 0, 128);">$row</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">as</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 128);">$item</span><span style="color: rgb(0, 0, 0);">) {<br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 128);">$item</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">        }<br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br>\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);"> }<br /></span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">OCILogoff(</span><span style="color: rgb(128, 0, 128);">$conn</span><span style="color: rgb(0, 0, 0);">);<br /></span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">?></span></div><br /></span></li></ol><br /><img src ="http://m.tkk7.com/mmwy/aggbug/75207.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mmwy/" target="_blank">mmwy</a> 2006-10-15 02:46 <a href="http://m.tkk7.com/mmwy/archive/2006/10/15/75207.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Trutix 3.0 Linux上配|dhcpdhttp://m.tkk7.com/mmwy/archive/2005/12/29/25919.htmlmmwymmwyThu, 29 Dec 2005 10:07:00 GMThttp://m.tkk7.com/mmwy/archive/2005/12/29/25919.htmlhttp://m.tkk7.com/mmwy/comments/25919.htmlhttp://m.tkk7.com/mmwy/archive/2005/12/29/25919.html#Feedback0http://m.tkk7.com/mmwy/comments/commentRss/25919.htmlhttp://m.tkk7.com/mmwy/services/trackbacks/25919.html1、安?BR>从trutix 3.0的碟中,上传两个RPM文gDHCP_COM.RPM、DHCP_SER.RPMQ然后用rpm -ivh xxxx.rpm安装卛_?BR>
2、配|?BR>root@trustix-v22-cvs-001 ~# cat /etc/dhcpd.conf
# Do not claim to rule this network.  You want to change this if you really
# want it to work.
not authoritative;

# Do not try to update DNS by default
ddns-update-style none;

#|络
subnet 61.138.209.0 netmask 255.255.255.0 {
        range 61.138.209.235 61.138.209.240;  #地址范围
        default-lease-time 600;                             #默认U期旉
        max-lease-time 3600;                               #用户可以获得的最长租期时?BR>        option subnet-mask 255.255.255.0;         #掩码
        option routers 61.138.209.1;                    #|关
        option domain-name-servers 61.166.150.101; #DNS地址
}
#为某个MAC地址l定IP
host usr1{
        hardware ethernet 00:50:8D:5A:9C:E9;
        fixed-address 61.138.209.235;
}



mmwy 2005-12-29 18:07 发表评论
]]>
该死的中软Linux 3.1http://m.tkk7.com/mmwy/archive/2005/12/27/25559.htmlmmwymmwyTue, 27 Dec 2005 04:30:00 GMThttp://m.tkk7.com/mmwy/archive/2005/12/27/25559.htmlhttp://m.tkk7.com/mmwy/comments/25559.htmlhttp://m.tkk7.com/mmwy/archive/2005/12/27/25559.html#Feedback0http://m.tkk7.com/mmwy/comments/commentRss/25559.htmlhttp://m.tkk7.com/mmwy/services/trackbacks/25559.html
q两天弄了台淘汰下来的服务器Q准备装来做部门的cvs、bug、oracle服务器,惌oracle的时候省事省心,p成中软的Linux 3.1,q上断掉再连Q如此反复,最后发现自׃不去了,換台机器上去才发现自p加进ipchains?etc/hosts.deny里面M?br>
开始怀疑是ipchains、iptables服务的问题,chkconfig --level 345 ipchains off以后Q仍然如此?br>
打电话问情报所的吴兵,刚把现象一Ԍ他就直接说了Q是hostsentry和portsentry两个q程做的怪,看了一下,?etc/rc.d/rc3.d下,q两个东襉K是S前缀的,停掉服务Q终于OK?br>



mmwy 2005-12-27 12:30 发表评论
]]>
在老版本Linux上启用iptablesQ禁止ipchainsQ?/title><link>http://m.tkk7.com/mmwy/archive/2005/11/21/20810.html</link><dc:creator>mmwy</dc:creator><author>mmwy</author><pubDate>Mon, 21 Nov 2005 10:58:00 GMT</pubDate><guid>http://m.tkk7.com/mmwy/archive/2005/11/21/20810.html</guid><wfw:comment>http://m.tkk7.com/mmwy/comments/20810.html</wfw:comment><comments>http://m.tkk7.com/mmwy/archive/2005/11/21/20810.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/mmwy/comments/commentRss/20810.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mmwy/services/trackbacks/20810.html</trackback:ping><description><![CDATA[最q在RH 6.1、COSIX 3.1服务器上配置iptablesQ被ipchains弄得半死?br> <br> iptables需要加入ip_tables模块Q但是由于ipchains从中作梗Q每ơ都报错?br> [root@cosix-31-oracle-01 /root]# iptables --list<br> /lib/modules/2.4.18-5smp/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy<br> Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters<br> /lib/modules/2.4.18-5smp/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-5smp/kernel/net/ipv4/netfilter/ip_tables.o failed<br> /lib/modules/2.4.18-5smp/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed<br> iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)<br> Perhaps iptables or your kernel needs to be upgraded.<br> <br> <br> 开始以为是服务器上安装oracle8iӞ降了gcc版本造成的,折腾好几天,无意中在google上用“init_module: Device or resource busy”做关键词google到某个maillist中的提示信息Q恍然大?br> <br> 首先停掉ipchains服务<br> #chkconfig --level 345 ipchains off<br> # service ipchains stop<br> Flushing all chains: [  OK  ]<br> Removing user defined chains: [  OK  ]<br> Resetting built-in chains to the default ACCEPT policy:[  OK  ]<br> Lipchains的模?br> # rmmod ipchains<br> <br> 使用vi~辑/etc/sysconfig/iptables文gQ具体用哪个文gQ要?etc/rc.d/init.d/iptables脚本Q?br> <br> # Firewall configuration written by redhat-config-securitylevel<br> # Manual customization of this file is not recommended.<br> *filter<br> :INPUT DROP [0:0]<br> :FORWARD DROP [0:0]<br> :OUTPUT ACCEPT [0:0]<br> :RH-Firewall-1-INPUT - [0:0]<br> -A INPUT -j RH-Firewall-1-INPUT<br> -A FORWARD -j RH-Firewall-1-INPUT<br> -A RH-Firewall-1-INPUT -i lo -j ACCEPT<br> -A RH-Firewall-1-INPUT -p icmp -j ACCEPT<br> -A RH-Firewall-1-INPUT -p 50   -j ACCEPT<br> -A RH-Firewall-1-INPUT -p 51   -j ACCEPT<br> -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br> <br> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 192.168.0.0/24  -j ACCEPT<br> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 61.138.209.0/24 -j ACCEPT<br> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp -s 61.166.155.0/24 -j ACCEPT<br> <br> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521         -j ACCEPT<br> <br> -A RH-Firewall-1-INPUT -p udp -s 61.138.209.0/24 -j ACCEPT<br> <br> -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited<br> COMMIT<br> <br> 启动iptables服务<br> #service iptables start<br> Flushing all current rules and user defined chains: [  OK  ]<br> Clearing all current rules and user defined chains: [  OK  ]<br> Applying iptables firewall rules: <br> [  OK  ]<br> #chkconfig --level 345 iptables on<br> <br> <br> <br> <img src ="http://m.tkk7.com/mmwy/aggbug/20810.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mmwy/" target="_blank">mmwy</a> 2005-11-21 18:58 <a href="http://m.tkk7.com/mmwy/archive/2005/11/21/20810.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RHCD AS4 U2下vsftpd pam_userdbhttp://m.tkk7.com/mmwy/archive/2005/11/18/20478.htmlmmwymmwyFri, 18 Nov 2005 10:50:00 GMThttp://m.tkk7.com/mmwy/archive/2005/11/18/20478.htmlhttp://m.tkk7.com/mmwy/comments/20478.htmlhttp://m.tkk7.com/mmwy/archive/2005/11/18/20478.html#Feedback0http://m.tkk7.com/mmwy/comments/commentRss/20478.htmlhttp://m.tkk7.com/mmwy/services/trackbacks/20478.html折腾了很久,q是 char 发现的问题?br>
在AS4 U2下,/etc/pam.d/ftp.vsftpd中如下定?br>
auth  required   /lib/security/pam_userdb.so   db=/etc/vsftpd/vsftpd.login

在用db_load生成userdb文gӞ应该使用

db_load -T -t hash -f ftpuser /etc/vsftpd/vsftpd.login.db

必须l定一个扩展名.db



mmwy 2005-11-18 18:50 发表评论
]]>
VsFtpd安装、配|?/title><link>http://m.tkk7.com/mmwy/archive/2005/11/15/19970.html</link><dc:creator>mmwy</dc:creator><author>mmwy</author><pubDate>Tue, 15 Nov 2005 15:45:00 GMT</pubDate><guid>http://m.tkk7.com/mmwy/archive/2005/11/15/19970.html</guid><wfw:comment>http://m.tkk7.com/mmwy/comments/19970.html</wfw:comment><comments>http://m.tkk7.com/mmwy/archive/2005/11/15/19970.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/mmwy/comments/commentRss/19970.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mmwy/services/trackbacks/19970.html</trackback:ping><description><![CDATA[<h1 style="margin: 17pt 0cm 16.5pt;"><span lang="EN-US"><font face="Arial">1</font></span><span style="font-family: 黑体;">?/span><span lang="EN-US"><font face="Arial">vsftpd</font></span><span style="font-family: 黑体;">安装</span></h1> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">通常Q装?/span><span lang="EN-US">RHCE AS3/4</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">以后Q?/span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">服务都已l安装完成?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">如果安装</span><span lang="EN-US">RHCE AS3/4</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">时未选择安装</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q你也可以?/span><span lang="EN-US">rpm –ivh vsftp…rpm</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">使用手动安装Q或者直接去</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">|站Q?/span><span lang="EN-US">http://vsftpd.beasts.org/</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q下载最新的</span><span lang="EN-US">tar.gz</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">格式源码包,解包后?/span><span lang="EN-US">make/make install</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">卛_</span></p> <h2 style="margin: 13pt 0cm;"><span lang="EN-US"><font face="Arial">2</font></span><span style="font-family: 黑体;">?/span><span lang="EN-US"><font face="Arial">vsftpd</font></span><span style="font-family: 黑体;">配置</span></h2> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">Vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">默认使用</span><span lang="EN-US">linux</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">pȝ账号dQ维护管理不太方便,也容易引发安全问题。因此,采用</span><span lang="EN-US">pam_userdb</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">或是</span><span lang="EN-US">pam_mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">q行虚拟用户配置?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <h3 style="margin: 13pt 0cm;"><font size="5"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span><span lang="EN-US">1</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span><span lang="EN-US">PAM_USERDB</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">保存</span><span lang="EN-US">ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">d账号</span></font></h3> <p class="mobile-post" style="margin: auto 0cm;"><font face="宋体"><span lang="EN-US">A</span>、创Z个时文Ӟ?span lang="EN-US">/root/a.txt</span>Q按下面的格式在此文件中d虚拟的用P</font></p> <p class="mobile-post" style="margin: auto 0cm; text-align: center;" align="center"><span style="color: gray;"><font face="宋体">用户?/font><font face="宋体"><span lang="EN-US">1<br></span>密码</font><font face="宋体"><span lang="EN-US">1<br></span>用户?/font><font face="宋体"><span lang="EN-US">2<br></span>密码<span lang="EN-US">2</span></font></span></p> <p class="mobile-post" style="margin: auto 0cm;"><font face="宋体"><span lang="EN-US">B</span>、然后用<span lang="EN-US">db_load</span>命o生成<span lang="EN-US">pam_userdb</span>认证所需的̎h?/font></p> <p class="mobile-post" style="margin: auto 0cm;"><span lang="EN-US"><font face="宋体">db_load -T -t hash -f a.txt /etc/vsftpd/vsftpd.login</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">C</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US">PAM</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">配置信息</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US">/etc/pam.d/</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">下创Z个文Ӟ?/span><span lang="EN-US">/etc/pam.d/ftp.vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q文件内容如?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">auth<span style="">        </span>required<span style="">   </span>/lib/security/pam_userdb.so<span style="">   </span>db=<b style="">/etc/vsftpd/vsftpd.login</b><br>account<span style="">   </span>required<span style="">   </span>/lib/security/pam_userdb.so<span style="">   </span>db=<a style=""><b style="">/etc/vsftpd/vsftpd.login</b></a></span><span id="yuaqwoa" class="MsoCommentReference"><b style=""><span lang="EN-US"><a language="JavaScript" class="msocomanchor" id="_anchor_1" onmouseover="function anonymous() { msoCommentShow('_anchor_1','_com_1') }" onmouseout="function anonymous() { msoCommentHide('_com_1') }" name="_msoanchor_1">[w1]</a><span style=""> </span></span></b></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">D</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、编?/span><span lang="EN-US">/etc/vsftpd.conf</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">Vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">默认的配|文件ؓ</span><span lang="EN-US">/etc/vsftpd.conf</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q你也可以在启动</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">时用?/span><span lang="EN-US">vsftpd /path/configfile</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">”的命o使用别的配置文g?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">通常Q?/span><span lang="EN-US"> /etc/vsftpd.conf</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">中只攄一些基本的配置信息Q所有用户公共性的配置Q,然后针对具体用户做更详细的配|,下面是一个简单的</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">配置CZ?/span></p> <p class="mobile-post" style="margin: auto 0cm;"><font face="宋体"><span lang="EN-US">listen=YES<br>listen_port=21<br>#</span>止匿名d</font><span lang="EN-US"><br><font face="宋体">anonymous_enable=NO<br>local_enable=YES<br>chroot_local_user=YES<br>guest_enable=YES<br>#</font></span><font face="宋体">所有虚拟用L同于<span lang="EN-US">ftp</span>q个pȝ账号的权?/font><span lang="EN-US"><br><font face="宋体">guest_username=ftp<br>#</font></span><font face="宋体">允许匿名下蝲</font><span lang="EN-US"><br><font face="宋体">anon_world_readable_only=NO<br>max_clients=100<br>max_per_ip=10<br>#</font></span><font face="宋体">?span lang="EN-US">pam</span>部分配置的文件名应匹配,q里?/font><span lang="EN-US"><font face="宋体">ftpd.vsftpd<br>pam_service_name=</font><font face="宋体"><b style="">ftp.vsftpd<br></b>#</font></span><font face="宋体">指定每个虚拟用户账号配置目录Q这里是</font><font face="宋体"><span lang="EN-US">/etc/vsftpd/virtual<br>#</span>如果需要对<span lang="EN-US">wuyu</span>q个账号q行详细配置Q你需要创一?/font><span lang="EN-US"><br><font face="宋体">#/etc/vsftpd/virtual/wuyu</font></span><font face="宋体">的文?/font><span lang="EN-US"><br><font face="宋体">user_config_dir=</font><b style=""><font face="宋体">/etc/vsftpd/virtaul/<br></font></b></span><font face="宋体">Q指定默认的<span lang="EN-US">ftp</span>目录Q如果不讄Q则默认?span lang="EN-US">ftp</span>目录?span lang="EN-US">ftp</span>q个pȝ账号的默认目录(?span lang="EN-US">/etc/passwd</span>文g内容Q?/font><span lang="EN-US"><br><font face="宋体">local_root=<b style="">/www/ftp</b><br>xferlog_enable=YES<br>xferlog_file=/var/log/vsftpd.log<br>xferlog_std_format=YES</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">按照上面q个配置文gQ虚拟用户可以正常的d</span><span lang="EN-US">ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q在</span><span lang="EN-US">ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">上下载数据,但是不能创徏目录Q不能上传数据,用户的根目录指向</span><span lang="EN-US">/www/ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">。如果需要允怸别用户上传,或是更改用户?/span><span lang="EN-US">ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">根目录指向,我们需要在</span><span lang="EN-US">/etc/vsftpd/virtual</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">目录下根据用户名创徏相应的配|文件。以</span><span lang="EN-US">wuyu</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">q个用户账号ZQ其配置文g</span><span lang="EN-US">/etc/vsftpd/virtaul/wuyu</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">的内容如下:</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">local_root=/home/wuyu<br>write_enable=YES<br>anon_world_readable_only=NO<br>anon_upload_enable=YES<br>anon_mkdir_write_enable=YES</span></p> <h3 style="margin: 13pt 0cm;"><font size="5"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span><span lang="EN-US">2</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">数据库保?/span><span lang="EN-US">ftp</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">d账号</span></font></h3> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">׃</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">使用</span><span lang="EN-US">PAM</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">做ؓw䆾认证Q因此,配置</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">使用</span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">保存d账号信息非常方便,只要安装</span><span lang="EN-US">PAM_MYSQL</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q然后修?/span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">的配|文件即可?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">A</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、安?/span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">Mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">~译Q安装文参?/span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">安装文。完?/span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">安装Q启?/span><span lang="EN-US">mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">服务后,针对</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">服务Q做如下操作Q?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">a</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、添加一个用戯̎P?/span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q密码ؓ</span><span lang="EN-US">1234567</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">b</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、创?/span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">使用的数据库Q如</span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">c</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、徏表(字段名称可Q意定义)</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">CREATE TABLE `users` (</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="">  </span>`name` varchar(50),</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="">  </span>`passwd` varchar(50) </span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">)</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">B</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、安?/span><span lang="EN-US">pam_mysql</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US"><a >http://pam-mysql.sourceforge.net/</a></span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">下蝲</span><span lang="EN-US">pam_mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">的源码包Q?/span><span lang="EN-US">tar.gz</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">格式Q,使用</span><span lang="EN-US">tar xvfz</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">命o解包。然后执行以下三步命令完成安装?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">./configure --with-mysql=mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">安装目录</span><span lang="EN-US"><span style="">  </span>--prefix=</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">安装目的目录Q默认ؓ</span><span lang="EN-US">/usr/local</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">make</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">make install</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><p> </p></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">C</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">、配|?/span><span lang="EN-US">pam_mysql</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US">vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US">pam_userdb</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">改ؓ</span><span lang="EN-US">pam_mysql</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q仅仅需要修改与使用</span><span lang="EN-US">pam_userdb</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">相类|?/span><span lang="EN-US">/etc/pam.d/</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">下创Z个文Ӟ?/span><span lang="EN-US">/etc/pam.d/ftp.vsftpd</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q文件内容如?/span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">auth<span style="">        </span>required<span style="">          </span>/usr/lib/security/pam_mysql.so<span style="">             </span>user=vsftpd<span style="">           </span>passwd=1234567<span style="">          </span>host=127.0.0.1<span style="">       </span><span style="">       </span>db=vsftpd<span style="">              </span>table=users<span style="">     </span>usercolumn=name<span style="">         </span>passwdcolumn=passwd<span style="">        </span>crypt=2</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">account<span style="">   </span>required<span style="">          </span>/usr/lib/security/pam_mysql.so<span style="">             </span>user=vsftpd<span style="">           </span>passwd=1234567<span style="">          </span>host=127.0.0.1<span style="">       </span><span style="">       </span>db=vsftpd<span style="">              </span>table=users<span style="">            </span>usercolumn=name<span style="">         </span>passwdcolumn=passwd<span style="">        </span>crypt=2</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">q里需要说明的?/span><span lang="EN-US">crypt</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">参数?/span><span lang="EN-US">crypt</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">表示口o字段中口令的加密方式Q?/span><span lang="EN-US">crypt=0</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q口令以明文方式Q不加密Q保存在数据库中Q?/span><span lang="EN-US">crypt=1</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span> <span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">口o使用</span><span lang="EN-US">UNIX</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">pȝ?/span><span lang="EN-US">DES</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">加密方式加密后保存在数据库中Q?/span><span lang="EN-US">crypt=2</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q口令经q?/span><span lang="EN-US">MySQL</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">?/span><span lang="EN-US">password()</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">函数加密后保存?/span></p> <h3 style="margin: 13pt 0cm;"><font size="5"><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q?/span><span lang="EN-US">3</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">Q在使用</span><span lang="EN-US">iptables</span><span style="font-family: 宋体;" ;="" mso-hansi-font-family="" times="" new="" roman="">的情况下允许被动模式?/span></font></h3> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">modprobe iptable_nat</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">modprobe ip_conntrack</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">modprobe ip_conntrack_ftp</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">modprobe ip_nat_ftp</span></p> <img src ="http://m.tkk7.com/mmwy/aggbug/19970.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mmwy/" target="_blank">mmwy</a> 2005-11-15 23:45 <a href="http://m.tkk7.com/mmwy/archive/2005/11/15/19970.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://516kd.com" target="_blank">456˳߲վ</a>| <a href="http://www55xx.com" target="_blank">޳ߵӰ</a>| <a href="http://gsonlinet.com" target="_blank">avɫ㽶һ</a>| <a href="http://6nn5.com" target="_blank">һĿ</a>| <a href="http://yy7699.com" target="_blank">޾Ʒһ</a>| <a href="http://51nianyefan.com" target="_blank">˳Ƶ</a>| <a href="http://xyzch.com" target="_blank">ձŷɫƵ߲ </a>| <a href="http://44jjy.com" target="_blank">պƷһ</a>| <a href="http://dunyny.com" target="_blank">ۺɫӰ</a>| <a href="http://see01.com" target="_blank">ѹۿĹƵ</a>| <a href="http://blbkl.com" target="_blank">AVŮһ</a>| <a href="http://jcss99.com" target="_blank">ĻƵ</a>| <a href="http://ee45987.com" target="_blank">ҹƬ߹ۿ</a>| <a href="http://517fanfan.com" target="_blank">ѿһ</a>| <a href="http://ee45987.com" target="_blank">պٸѲ</a>| <a href="http://dddd20.com" target="_blank">վ</a>| <a href="http://zmtme.com" target="_blank">ɫۺϾþþƷ޹</a>| <a href="http://www96pg.com" target="_blank">ɫۺϿ</a>| <a href="http://xiaochidaquan.com" target="_blank">ҹav2019</a>| <a href="http://youweidianqi.com" target="_blank">ԸŮƵվҹ</a>| <a href="http://http99.com" target="_blank">˾ҹƷƵ߹ۿ </a>| <a href="http://6123fa.com" target="_blank">Ļ߿Ӱȫ </a>| <a href="http://142121.com" target="_blank">ѶëƬƵ</a>| <a href="http://26672814.com" target="_blank">һƵѹۿ</a>| <a href="http://001mc.com" target="_blank">þҹɫƷ</a>| <a href="http://xmjcjc.com" target="_blank">2019Ļ</a>| <a href="http://df6618.com" target="_blank">Ʒۺ</a>| <a href="http://717795.com" target="_blank">ѹۿĻƷ</a>| <a href="http://xseporn.com" target="_blank">һ</a>| <a href="http://gycat.com" target="_blank">ŷ ͼƬۺ</a>| <a href="http://gdjiayou.com" target="_blank">avַ</a>| <a href="http://90hong.com" target="_blank">޾ƷѹۿƵ</a>| <a href="http://pohezi.com" target="_blank">ɫav</a>| <a href="http://simupiao.com" target="_blank">߹ۿѸƵ</a>| <a href="http://k4h3.com" target="_blank">ɫaվ</a>| <a href="http://avyjj.com" target="_blank">þþþavר </a>| <a href="http://worldbiao.com" target="_blank">þþþŮʦһ</a>| <a href="http://avqvod.com" target="_blank">777޾Ʒþþþþ </a>| <a href="http://wxyz2.com" target="_blank">պAVһl</a>| <a href="http://4922000.com" target="_blank">þþþþ޾Ʒ</a>| <a href="http://www132126.com" target="_blank">AëƬ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>