{"id":802,"date":"2008-07-26T16:16:42","date_gmt":"2008-07-26T08:16:42","guid":{"rendered":"http:\/\/blog.smallken.ink\/2008\/07\/26\/linux\/802.html"},"modified":"2008-07-26T16:33:59","modified_gmt":"2008-07-26T08:33:59","slug":"%e6%9e%b6%e8%a8%ad-pureftpd-with-mysql-%e8%99%9b%e6%93%acftp%e5%b8%b3%e8%99%9f-on-fedora-9","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=802","title":{"rendered":"\u67b6\u8a2d PureFTPd With MySQL \u865b\u64ecFTP\u5e33\u865f On Fedora 9"},"content":{"rendered":"<p>\u9019\u7bc7\u8981\u793a\u7bc4\u7684\u662f\u67b6\u8a2d\u4e00\u500bFTP\u7ad9\uff0c\u9019\u500bFTP\u7ad9\u5e33\u865f\u8cc7\u6599\u4f7f\u7528MySQL\u8cc7\u6599\u5eab\u4f86\u7ba1\u7406\uff0c\u9019\u6a23\u4e00\u4f86\u6211\u5011\u53ef\u4ee5\u505a\u5f88\u5f48\u6027\u7684\u904b\u7528\uff0c\u6bd4\u5982\u8aaa\u5e33\u865f\u4eba\u6578\u53ef\u4ee5\u4e0a\u7121\u9650\u3001\u4e0a\u4e0b\u50b3\u6d41\u91cf\u63a7\u7ba1\u3001QUOTA\u7a7a\u9593\u9650\u5236\u7b49\u7b49\u3002<\/p>\n<p>\u5047\u8a2d\u60a8\u5df2\u7d93\u88dd\u597d\u4e86Fedora 9 \u4f5c\u696d\u7cfb\u7d71\uff0c\u53ef\u4ee5\u9023\u4e0a\u7db2\u8def\uff0cIP \u4f4d\u5740\u70ba 192.168.1.249<\/p>\n<p>1.\u5b89\u88dd httpd\u3001Mysql \u8207 phpMyAdmin<\/p>\n<p># yum install mysql mysql-server phpMyAdmin httpd<br \/>.<br \/>.<br \/>Updated: php.i386 0:5.2.6-2.fc9 php-cli.i386 0:5.2.6-2.fc9 php-common.i386 0:5.2.6-2.fc9 php-ldap.i386 0:5.2.6-2.fc9 php-mysql.i386 0:5.2.6-2.fc9 php-pdo.i386 0:5.2.6-2.fc9<br \/>Complete!<\/p>\n<p>2.\u7de8\u8f2f \/etc\/httpd\/conf.d\/phpMyAdmin.conf\uff0c\u9810\u8a2d phpMyAdmin \u53ea\u51c6\u672c\u6a5fIP\u9023\u7dda\uff0c\u6211\u5011\u8981\u6539\u6210\u958b\u653e\u6240\u6709IP\u9023\u7dda\uff0c\u90e8\u5206\u8a2d\u5b9a\u8981\u8a3b\u89e3\u6389\u3002<br \/># vi \/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/p>\n<p>Alias \/phpMyAdmin \/usr\/share\/phpMyAdmin<br \/>Alias \/phpmyadmin \/usr\/share\/phpMyAdmin<br \/><font color=\"#ff0000\">#<\/font>&lt;Directory \/usr\/share\/phpMyAdmin\/&gt;<br \/><font color=\"#ff0000\">#<\/font>&nbsp;&nbsp; order deny,allow<br \/><font color=\"#ff0000\">#<\/font>&nbsp;&nbsp; deny from all<br \/><font color=\"#ff0000\">#<\/font>&nbsp;&nbsp; allow from 127.0.0.1<br \/><font color=\"#ff0000\">#<\/font>&lt;\/Directory&gt; <!--nextpage--> <\/p>\n<p>3.\u555f\u52d5 MySQL Server\uff0c\u4e26\u8a2d\u5b9a\u958b\u6a5f\u81ea\u52d5\u555f\u52d5<br \/># service mysqld start<br \/># chkconfig mysqld on<\/p>\n<p>4.\u555f\u52d5 httpd Server\uff0c\u4e26\u8a2d\u5b9a\u958b\u6a5f\u81ea\u52d5\u555f\u52d5<br \/># service httpd start<br \/># chkconfig httpd on<\/p>\n<p>5.\u767b\u5165MySQL Server\uff0c\u8a2d\u5b9a root \u5bc6\u78bc<br \/># mysql mysql<\/p>\n<p>mysql&gt; use mysql<br \/>Database changed<br \/>mysql&gt; update user set password=password(&#8220;<font color=\"#ff0000\">\u65b0\u5bc6\u78bc<\/font>&#8220;) where user=&#8221;root&#8221;;<br \/>Query OK, 3 rows affected (0.00 sec)<br \/>Rows matched: 3&nbsp; Changed: 3&nbsp; Warnings: 0<br \/>mysql&gt; flush privileges;<br \/>Query OK, 0 rows affected (0.00 sec)<br \/>mysql&gt; quit<br \/>Bye  <\/p>\n<p>6.\u5b89\u88dd PureFTPd<br \/># yum install pure-ftpd<br \/>.<br \/>.  <\/p>\n<p>Dependency Installed: postgresql-libs.i386 0:8.3.3-2.fc9<br \/>Complete!  <\/p>\n<p>7.\u65b0\u589e\u4e00\u7d44ftpuser\u8ddfftpgroup\u7d66FTP\u767b\u5165\u6642\u7684\u7cfb\u7d71\u8eab\u4efd\u4f7f\u7528\u3002<br \/># groupadd -g 2001 ftpgroup<br \/># useradd -u 2001 -s \/bin\/false -d \/bin\/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser  <\/p>\n<p>8.\u5728 MySQL \u4e2d\u5efa\u7acb pureftpd database\uff0c\u9019\u500b\u8cc7\u6599\u5eab\u6703\u5b58\u653e\u6240\u6709\u4f7f\u7528\u8005\u7684\u5e33\u865f\u3001\u5bc6\u78bc\u53ca\u5176\u4ed6\u63a7\u7ba1\u8cc7\u8a0a\uff0c\u9019\u88e1\u6703\u65b0\u589e\u4e00\u500b\u7ba1\u7406pureftpd database \u7684\u4f7f\u7528\u8005 pureftpd\uff0c\u4f7f\u7528\u8005 pureftpd \u7684\u5bc6\u78bc\u8a2d\u5b9a\u8acb\u81ea\u884c\u53d6\u4ee3 <font color=\"#ff0000\">ftppassword<\/font><br \/># mysql -u root -p<br \/>Enter password:<font color=\"#0000ff\"> \u2190 \u8f38\u5165\u525b\u525b\u5efa\u7acb\u7684\u65b0\u5bc6\u78bc<\/font><font color=\"#408080\"><br \/><\/font>mysql&gt; <strong>CREATE DATABASE pureftpd;<br \/><\/strong>Query OK, 1 row affected (0.07 sec)  <\/p>\n<p>mysql&gt; <strong>GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO &#8216;pureftpd&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;<font color=\"#ff0000\">ftppassword<\/font>&#8216;;<br \/><\/strong>Query OK, 0 rows affected (0.19 sec)<\/p>\n<p>mysql&gt; <strong>GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO &#8216;pureftpd&#8217;@&#8217;localhost.localdomain&#8217; IDENTIFIED BY &#8216;<font color=\"#ff0000\">ftppassword<\/font>&#8216;;<br \/><\/strong>Query OK, 0 rows affected (0.00 sec)  <\/p>\n<p>mysql&gt; <strong>FLUSH PRIVILEGES;<br \/><\/strong>Query OK, 0 rows affected (0.00 sec)  <\/p>\n<p><font color=\"#408080\">\/\/ \u63a5\u8457\u6211\u5011\u8981\u5728\u9019\u500b pureftpd database \u5efa\u7acb\u4e00\u500b ftpd table<\/font><br \/>mysql&gt;<strong> USE pureftpd;<br \/><\/strong>Database changed  <\/p>\n<p>mysql&gt;<strong> CREATE TABLE ftpd (<br \/>&nbsp;&nbsp;&nbsp; -&gt; User varchar(16) NOT NULL default &#8221;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; status enum(&#8216;0&#8242;,&#8217;1&#8217;) NOT NULL default &#8216;0&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; Password varchar(64) NOT NULL default &#8221;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; Uid varchar(11) NOT NULL default &#8216;-1&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; Gid varchar(11) NOT NULL default &#8216;-1&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; Dir varchar(128) NOT NULL default &#8221;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; ULBandwidth smallint(5) NOT NULL default &#8216;0&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; DLBandwidth smallint(5) NOT NULL default &#8216;0&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; comment tinytext NOT NULL,<br \/>&nbsp;&nbsp;&nbsp; -&gt; ipaccess varchar(15) NOT NULL default &#8216;*&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; QuotaSize smallint(5) NOT NULL default &#8216;0&#8217;,<br \/>&nbsp;&nbsp;&nbsp; -&gt; QuotaFiles int(11) NOT NULL default 0,<br \/>&nbsp;&nbsp;&nbsp; -&gt; PRIMARY KEY (User),<br \/>&nbsp;&nbsp;&nbsp; -&gt; UNIQUE KEY User (User)<br \/>&nbsp;&nbsp;&nbsp; -&gt; ) TYPE=MyISAM;<br \/><\/strong>Query OK, 0 rows affected, 1 warning (0.20 sec)  <\/p>\n<p>mysql&gt; <strong>quit;<br \/><\/strong>Bye  <\/p>\n<p>9.\u63a5\u8457\u6211\u5011\u4f86\u6e2c\u8a66\u4e00\u4e0b phpMyAdmin \u7684\u7ba1\u7406\u9801\u9762<br \/>http:\/\/192.168.1.249\/phpMyAdmin\/<br \/>\u5982\u679c\u6c92\u6709\u6210\u529f\uff0c\u8acb\u95dc\u6389\u9632\u706b\u7246\uff0c\u6216\u8005\u958b\u555f port 80 \u9023\u7dda<br \/># service iptable stop&nbsp; <font color=\"#0000ff\">\u2190 \u95dc\u9589\u9632\u706b\u7246<\/font><br \/>\u6216<br \/># vi \/etc\/sysconfig\/iptables<br \/>-A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 80 -j ACCEPT <font color=\"#0000ff\">\u2190 \u65b0\u589e\u4e00\u884c<br \/><\/font><font color=\"#000000\"># service iptables restart<\/font><\/p>\n<p><font color=\"#000000\">\u6e2c\u8a66&nbsp; <\/font><a title=\"http:\/\/192.168.1.249\/phpMyAdmin\/\" href=\"http:\/\/192.168.1.249\/phpMyAdmin\/\">http:\/\/192.168.1.249\/phpMyAdmin\/<\/a><\/p>\n<p><!--nextpage--> <\/p>\n<p>\u5982\u679c\u8df3\u51fa\u4ee5\u4e0b\u767b\u5165\u8a0a\u606f\uff0c\u8acb\u8f38\u5165\u4f7f\u7528\u8005 pureftpd\uff0c\u4ee5\u53ca\u4e4b\u524d\u8a2d\u5b9a\u7684pureftpd \u5bc6\u78bc<font color=\"#ff0000\">ftppassword<\/font><\/p>\n<p>&nbsp;<img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"354\" alt=\"image\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/image.png\" width=\"326\" border=\"0\"\/> <\/p>\n<p>\u767b\u5165\u6210\u529f\u756b\u9762<br \/><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"362\" alt=\"image\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/image1.png\" width=\"500\" border=\"0\"\/>&nbsp; <\/p>\n<p>10.\u8a2d\u5b9a PureFTPd<br \/># vi \/etc\/pure-ftpd\/pure-ftpd.conf<br \/><font color=\"#408080\">\/\/ \u78ba\u8a8d\u4fee\u6539\u6210\u5982\u4ee5\u4e0b\u4e09\u884c\uff0cChrootEveryone \u9650\u5236\u767b\u5165\u4f7f\u7528\u8005\u4e0d\u6703\u5207\u63db\u76ee\u9304\u5230\u5225\u4eba\u5bb6\u88e1\u9762\u53bb\uff0cCreateHomeDir \u82e5\u662f\u65b0\u4e00\u6b21\u767b\u5165\u7684\u4f7f\u7528\u8005\u9019\u88e1\u6703\u81ea\u52d5\u5efa\u7acb\u4f7f\u7528\u8005\u7684\u5bb6\u76ee\u9304\uff0cMySQLConfigFile \u5c31\u91cd\u8981\u4e86\uff0c\u9019\u5c31\u662f\u628a PureFTPd \u8207 MySQL \u63a5\u8d77\u4f86\u7684\u8a2d\u5b9a\u6a94&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br \/><\/font>ChrootEveryone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br \/>MySQLConfigFile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/etc\/pure-ftpd\/pureftpd-mysql.conf<br \/>CreateHomeDir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<\/p>\n<p>11.\u5148\u5099\u4efd pureftpd-mysql.conf \u8a2d\u5b9a\u6a94\uff0c\u518d\u7de8\u8f2f pureftpd-mysql.conf \u8a2d\u5b9a\u6a94<br \/># cp \/etc\/pure-ftpd\/pureftpd-mysql.conf \/etc\/pure-ftpd\/pureftpd-mysql.conf_bk<br \/># vi \/etc\/pure-ftpd\/pureftpd-mysql.conf<br \/>MYSQLSocket&nbsp;&nbsp;&nbsp;&nbsp; \/var\/lib\/mysql\/mysql.sock<br \/>MYSQLUser&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">pureftpd<br \/><\/font>MYSQLPassword&nbsp;&nbsp; <font color=\"#ff0000\">ftppassword&nbsp; <\/font><font color=\"#0000ff\">\u2190 \u4e4b\u524d\u8a2d\u5b9a\u7684\u5bc6\u78bc<\/font><br \/>MYSQLDatabase&nbsp;&nbsp; pureftpd<br \/>MYSQLCrypt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">md5<\/font><\/p>\n<p>MYSQLGetPW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">SELECT Password FROM ftpd WHERE User=&#8221;\\L&#8221; AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MYSQLGetUID&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">SELECT Uid FROM ftpd WHERE User=&#8221;\\L&#8221; AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MYSQLGetGID&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">SELECT Gid FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MYSQLGetDir&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">SELECT Dir FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MySQLGetBandwidthUL <font color=\"#ff0000\">SELECT ULBandwidth FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MySQLGetBandwidthDL <font color=\"#ff0000\">SELECT DLBandwidth FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MySQLGetQTASZ&nbsp; <font color=\"#ff0000\">SELECT QuotaSize FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>MySQLGetQTAFS&nbsp; <font color=\"#ff0000\">SELECT QuotaFiles FROM ftpd WHERE User=&#8221;\\L&#8221;AND status=&#8221;1&#8243; AND (ipaccess = &#8220;*&#8221; OR ipaccess LIKE &#8220;\\R&#8221;)<\/font><\/p>\n<p>&nbsp;<\/p>\n<p><!--nextpage--> <\/p>\n<p>11.\u555f\u52d5 PureFTPd\uff0c\u4e26\u8a2d\u5b9a\u958b\u6a5f\u81ea\u52d5\u555f\u52d5<br \/># service pure-ftpd start<br \/># chkconfig pure-ftpd on<\/p>\n<p>12.\u63a5\u8457\u6211\u5011\u5148\u4f86\u5efa\u7acb\u4e00\u500b\u65b0\u7684\u4f7f\u7528\u8005\uff0c\u4f7f\u7528 phpMyAdmin<br \/>\u767b\u5165 <a title=\"http:\/\/192.168.1.249\/phpMyAdmin\/\" href=\"http:\/\/192.168.1.249\/phpMyAdmin\/\">http:\/\/192.168.1.249\/phpMyAdmin\/<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"376\" alt=\"62\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/62.png\" width=\"500\" border=\"0\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"396\" alt=\"63\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/63.png\" width=\"418\" border=\"0\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"155\" alt=\"64\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/64.png\" width=\"500\" border=\"0\"\/>&nbsp;&nbsp; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"357\" alt=\"61\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/61.png\" width=\"500\" border=\"0\"\/><\/p>\n<p>\u4f9d\u4f9d\u4f86\u89e3\u91cb\u6bcf\u500bftpd Table \u6b04\u4f4d\u7684\u610f\u7fa9\uff1a<br \/>User\uff1a\u4f7f\u7528\u8005\u540d\u7a31\uff0c\u4e5f\u5c31\u662f\u767b\u5165\u8005\u7684\u4f7f\u7528\u8005\u540d\u7a31<br \/>status\uff1a1 \u8868\u793a\u5e33\u865f\u6b63\u5e38\uff0c0 \u8868\u793a\u5e33\u865f\u66ab\u6642\u5c01\u9396\u4e0d\u80fd\u767b\u5165\uff0c\u8a2d\u5b9a\u9019\u500b\u6b04\u4f4d\u53ef\u4ee5\u66ab\u6642\u5c01\u9396\u67d0\u4f4d\u4f7f\u7528\u8005\u7684\u767b\u5165\u3002<br \/>Password\uff1a\u4f7f\u7528\u8005\u7684\u767b\u5165\u5bc6\u78bc\uff0c\u6211\u5011\u662f\u9078\u7528 MD5 \u5bc6\u78bc\u7de8\u78bc\u3002<br \/>UID\uff1a\u767b\u5165\u7cfb\u7d71\u7684\u8eab\u4efd\uff0c\u524d\u9762\u8a2d 2001<br \/>GID\uff1a\u767b\u5165\u7cfb\u7d71\u7684\u8eab\u4efd\uff0c\u524d\u9762\u8a2d 2001<br \/>Dir\uff1a\u8a2d\u5b9a\u4f7f\u7528\u8005\u767b\u5165\u6642\u6240\u5728\u7684\u5be6\u969b\u76ee\u9304\uff0c\u6240\u4ee5\u8981\u5f9e\u7cfb\u7d71\u7684\u6839\u76ee\u9304\u8a2d\u8d77\uff0c\u4f8b\u5982\/home\/smallken<br \/>ULBandwidth: \u4e0a\u50b3\u983b\u5bec\u9650\u5236\uff0c\u55ae\u4f4d KB\/s\uff0c\u8a2d 0 \u8868\u793a\u4e0d\u9650\u5236<br \/>DLBandwidth: \u4e0a\u50b3\u983b\u5bec\u9650\u5236\uff0c\u55ae\u4f4d KB\/s\uff0c\u8a2d 0 \u8868\u793a\u4e0d\u9650\u5236<br \/>ipaccess: \u53ef\u63a5\u53d7\u4f86\u6e90IP\u7684\u9023\u7dda\uff0c* \u8868\u793a\u5168\u90e8\u90fd\u63a5\u53d7\u3002<br \/>QuotaSize: \u76ee\u9304\u4e2d\u7684\u7a7a\u9593\u9650\u5236\uff0c\u6700\u5927\u4e0d\u8d85\u904e\u591a\u5c11MB\uff0c\u55ae\u4f4d\u662f MB\uff0c\u8a2d 0 \u8868\u793a\u4e0d\u9650\u5236<br \/>QuotaFiles: \u76ee\u9304\u4e2d\u7684\u6a94\u6848\u6578\u91cf\u9650\u5236\uff0c\u6700\u5927\u4e0d\u8d85\u904e\u591a\u5c11\u500b\u6a94\u6848\u6578\uff0c\u8a2d 0 \u8868\u793a\u4e0d\u9650\u5236<\/p>\n<p>\u65b0\u589e\u597d\u4f7f\u7528\u8005\u4e4b\u5f8c\uff0c\u6211\u5011\u9023\u7dda\u6e2c\u8a66\u4e00\u4e0b\uff0c\u53ef\u4ee5\u7528\u4efb\u4f55\u7684FTP Client\u767b\u5165\uff0c\u6ce8\u610f\u4e00\u4e0b\u9632\u706b\u7246<br \/># service iptables stop <font color=\"#0000ff\">\u2190 \u95dc\u9589\u9632\u706b\u7246<br \/><\/font><br \/><a href=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"396\" alt=\"image\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/07\/image-thumb.png\" width=\"504\" border=\"0\"\/><\/a> <br \/>\u9023\u7dda\u6210\u529f!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u7bc7\u8981\u793a\u7bc4\u7684\u662f\u67b6\u8a2d\u4e00\u500bFTP\u7ad9\uff0c\u9019\u500bFTP\u7ad9\u5e33\u865f\u8cc7\u6599\u4f7f\u7528MySQL\u8cc7\u6599\u5eab\u4f86\u7ba1\u7406\uff0c\u9019\u6a23\u4e00\u4f86\u6211\u5011\u53ef\u4ee5\u505a\u5f88\u5f48\u6027\u7684\u904b\u7528&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-802","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=802"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}