{"id":45430,"date":"2024-10-06T23:18:15","date_gmt":"2024-10-06T15:18:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/45430\/"},"modified":"2024-10-06T23:18:15","modified_gmt":"2024-10-06T15:18:15","slug":"%e5%9c%a8-centos-7-5-%e4%b8%8a%e5%ae%89%e8%a3%9d%e5%92%8c%e9%85%8d%e7%bd%ae-proftpd","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/45430\/","title":{"rendered":"\u5728 CentOS 7.5 \u4e0a\u5b89\u88dd\u548c\u914d\u7f6e ProFTPD"},"content":{"rendered":"<h1 id=\"%e5%9c%a8-centos-7-5-%e4%b8%8a%e5%ae%89%e8%a3%9d%e5%92%8c%e9%85%8d%e7%bd%ae-proftpd-VNoInMABon\">\u5728 CentOS 7.5 \u4e0a\u5b89\u88dd\u548c\u914d\u7f6e ProFTPD<\/h1>\n<p>ProFTPD \u662f\u4e00\u6b3e\u529f\u80fd\u5f37\u5927\u7684 FTP \u4f3a\u670d\u5668\u8edf\u9ad4\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc Linux \u74b0\u5883\u4e2d\u3002\u5b83\u7684\u8a2d\u8a08\u76ee\u7684\u662f\u70ba\u4e86\u63d0\u4f9b\u4e00\u500b\u9748\u6d3b\u4e14\u53ef\u64f4\u5c55\u7684 FTP \u89e3\u6c7a\u65b9\u6848\uff0c\u4e26\u4e14\u652f\u6301\u591a\u7a2e\u8eab\u4efd\u9a57\u8b49\u65b9\u5f0f\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 CentOS 7.5 \u4e0a\u5b89\u88dd\u548c\u914d\u7f6e ProFTPD\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d-proftpd-VNoInMABon\">\u5b89\u88dd ProFTPD<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u662f\u6700\u65b0\u7684\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u7cfb\u7d71\uff1a<\/p>\n<pre><code>sudo yum update<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 EPEL (Extra Packages for Enterprise Linux) \u5b58\u5132\u5eab\u4f86\u5b89\u88dd ProFTPD\u3002\u9996\u5148\uff0c\u5b89\u88dd EPEL \u5b58\u5132\u5eab\uff1a<\/p>\n<pre><code>sudo yum install epel-release<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u5b89\u88dd ProFTPD\uff1a<\/p>\n<pre><code>sudo yum install proftpd<\/code><\/pre>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 ProFTPD \u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl start proftpd<\/code><\/pre>\n<p>\u70ba\u4e86\u78ba\u4fdd ProFTPD \u5728\u7cfb\u7d71\u555f\u52d5\u6642\u81ea\u52d5\u555f\u52d5\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo systemctl enable proftpd<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae-proftpd-VNoInMABon\">\u914d\u7f6e ProFTPD<\/h2>\n<p>ProFTPD \u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u65bc \/etc\/proftpd.conf\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7de8\u8f2f\u5668\u4f86\u7de8\u8f2f\u6b64\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>sudo vi \/etc\/proftpd.conf<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u914d\u7f6e\u9078\u9805\uff1a<\/p>\n<h3 id=\"%e8%a8%ad%e7%bd%ae-ftp-%e6%a0%b9%e7%9b%ae%e9%8c%84-VNoInMABon\">\u8a2d\u7f6e FTP \u6839\u76ee\u9304<\/h3>\n<p>\u60a8\u53ef\u4ee5\u8a2d\u7f6e FTP \u6839\u76ee\u9304\uff0c\u9019\u662f\u7528\u6236\u9023\u63a5\u5f8c\u770b\u5230\u7684\u7b2c\u4e00\u500b\u76ee\u9304\u3002\u627e\u5230\u4ee5\u4e0b\u884c\u4e26\u9032\u884c\u4fee\u6539\uff1a<\/p>\n<pre><code>DefaultRoot ~<\/code><\/pre>\n<p>\u9019\u5c07\u9650\u5236\u7528\u6236\u53ea\u80fd\u8a2a\u554f\u4ed6\u5011\u7684\u4e3b\u76ee\u9304\u3002\u5982\u679c\u60a8\u5e0c\u671b\u7528\u6236\u80fd\u5920\u8a2a\u554f\u5176\u4ed6\u76ee\u9304\uff0c\u53ef\u4ee5\u5c07\u5176\u8a2d\u7f6e\u70ba\u7279\u5b9a\u8def\u5f91\u3002<\/p>\n<h3 id=\"%e8%a8%ad%e7%bd%ae%e7%94%a8%e6%88%b6%e8%ba%ab%e4%bb%bd%e9%a9%97%e8%ad%89-VNoInMABon\">\u8a2d\u7f6e\u7528\u6236\u8eab\u4efd\u9a57\u8b49<\/h3>\n<p>ProFTPD \u652f\u6301\u591a\u7a2e\u8eab\u4efd\u9a57\u8b49\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u9078\u64c7\u4f7f\u7528\u7cfb\u7d71\u7528\u6236\u6216\u865b\u64ec\u7528\u6236\u3002\u4ee5\u4e0b\u662f\u8a2d\u7f6e\u7cfb\u7d71\u7528\u6236\u8eab\u4efd\u9a57\u8b49\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>AuthOrder mod_auth_unix.c<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u4f7f\u7528\u865b\u64ec\u7528\u6236\uff0c\u5247\u9700\u8981\u5b89\u88dd mod_sql \u6a21\u7d44\u4e26\u914d\u7f6e\u76f8\u61c9\u7684\u6578\u64da\u5eab\u3002<\/p>\n<h3 id=\"%e8%a8%ad%e7%bd%ae%e8%a2%ab%e5%8b%95%e6%a8%a1%e5%bc%8f-VNoInMABon\">\u8a2d\u7f6e\u88ab\u52d5\u6a21\u5f0f<\/h3>\n<p>\u5728\u67d0\u4e9b\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u555f\u7528\u88ab\u52d5\u6a21\u5f0f\u3002\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>PassivePorts 49152 65534<\/code><\/pre>\n<p>\u9019\u5c07\u8a2d\u7f6e\u88ab\u52d5\u6a21\u5f0f\u7684\u7aef\u53e3\u7bc4\u570d\u3002<\/p>\n<h2 id=\"%e9%98%b2%e7%81%ab%e7%89%86%e8%a8%ad%e7%bd%ae-VNoInMABon\">\u9632\u706b\u7246\u8a2d\u7f6e<\/h2>\n<p>\u5728 CentOS 7.5 \u4e2d\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u9632\u706b\u7246\u5141\u8a31 FTP \u6d41\u91cf\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u958b\u653e FTP \u7aef\u53e3\uff1a<\/p>\n<pre><code>sudo firewall-cmd --permanent --add-service=ftp<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u91cd\u65b0\u52a0\u8f09\u9632\u706b\u7246\u914d\u7f6e\uff1a<\/p>\n<pre><code>sudo firewall-cmd --reload<\/code><\/pre>\n<h2 id=\"%e6%b8%ac%e8%a9%a6-ftp-%e4%bc%ba%e6%9c%8d%e5%99%a8-VNoInMABon\">\u6e2c\u8a66 FTP \u4f3a\u670d\u5668<\/h2>\n<p>\u5b8c\u6210\u914d\u7f6e\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 FTP \u5ba2\u6236\u7aef\uff08\u5982 FileZilla\uff09\u4f86\u6e2c\u8a66\u60a8\u7684 FTP \u4f3a\u670d\u5668\u3002\u8f38\u5165\u60a8\u7684\u4f3a\u670d\u5668 IP \u5730\u5740\u3001\u7528\u6236\u540d\u548c\u5bc6\u78bc\uff0c\u7136\u5f8c\u5617\u8a66\u9023\u63a5\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-VNoInMABon\">\u7e3d\u7d50<\/h2>\n<p>\u5728 CentOS 7.5 \u4e0a\u5b89\u88dd\u548c\u914d\u7f6e ProFTPD \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u901a\u904e\u4e0a\u8ff0\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684 FTP \u4f3a\u670d\u5668\u3002\u7121\u8ad6\u60a8\u662f\u9700\u8981\u5728 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u4e0a\u9032\u884c\u6587\u4ef6\u50b3\u8f38\uff0c\u9084\u662f\u5e0c\u671b\u5728\u5176\u4ed6\u74b0\u5883\u4e2d\u4f7f\u7528\uff0cProFTPD \u90fd\u662f\u4e00\u500b\u4e0d\u932f\u7684\u9078\u64c7\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u7684\u6280\u8853\u652f\u6301\u6216\u670d\u52d9\uff0c\u8acb\u8003\u616e\u6211\u5011\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u70ba\u60a8\u7684\u696d\u52d9\u63d0\u4f9b\u7a69\u5b9a\u7684\u57fa\u790e\u8a2d\u65bd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 CentOS 7.5 \u4e0a\u5b89\u88dd\u548c\u914d\u7f6e ProFTPD\uff0c\u5be6\u73fe\u5b89\u5168\u9ad8\u6548\u7684 FTP \u670d\u52d9\u5668\u8a2d\u7f6e\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-45430","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=45430"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45430\/revisions"}],"predecessor-version":[{"id":45431,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45430\/revisions\/45431"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=45430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=45430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=45430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}