{"id":285289,"date":"2023-10-13T20:16:10","date_gmt":"2023-10-13T12:16:10","guid":{"rendered":"https:\/\/gulass.cn\/lxtbbybgdffw.html"},"modified":"2023-10-13T20:16:10","modified_gmt":"2023-10-13T12:16:10","slug":"lxtbbybgdffw","status":"publish","type":"post","link":"https:\/\/gulass.cn\/lxtbbybgdffw.html","title":{"rendered":"Linux\u7cfb\u7edf\u5fc5\u5907\uff1a\u4e00\u6b65\u641e\u5b9aFTP\u670d\u52a1\u5b89\u88c5\u4e0e\u89e3\u51b3"},"content":{"rendered":"

\u672c\u6587\u5c06\u5206\u4eab\u6211\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e0a\u5b89\u88c5FTP\u670d\u52a1\u7684\u7ecf\u9a8c\uff0c\u5305\u62ec\u5b89\u88c5\u524d\u7684\u51c6\u5907\u5de5\u4f5c\u3001\u5b89\u88c5\u6b65\u9aa4\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\u7b49\u3002\u5e0c\u671b\u80fd\u5bf9\u9700\u8981\u5728Linux\u7cfb\u7edf\u4e0a\u642d\u5efaFTP\u670d\u52a1\u7684\u5c0f\u4f19\u4f34\u4eec\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n

1.\u51c6\u5907\u5de5\u4f5c\uff1a\u9009\u62e9\u5408\u9002\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6<\/b><\/p>\n

\u5728\u5f00\u59cb\u5b89\u88c5FTP\u670d\u52a1\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u5e38\u7528\u7684\u6709vsftpd\u3001ProFTPD\u548cPure-FTPd\u7b49\uff0c\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u7cfb\u7edf\u7248\u672c\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n

2.\u5b89\u88c5FTP\u670d\u52a1\u5668\u8f6f\u4ef6<\/b><\/p>\n

\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982apt\u3001yum\u6216\u8005dnf\u7b49\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b89\u88c5\u6240\u9009\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528apt\u547d\u4ee4<\/a>\u5b89\u88c5vsftpd\uff1a`sudo apt install vsftpd`<\/p>\n

3.\u914d\u7f6eFTP\u670d\u52a1\u5668<\/b><\/p>\n

\u4e00\u822c\u60c5\u51b5\u4e0blinux\u4e0b\u8f7d\uff0cFTP\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e\/etc\/vsftpd.conf\u3002\u901a\u8fc7\u7f16\u8f91\u8be5\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u533f\u540d\u767b\u5f55\u3001\u7528\u6237\u8bbf\u95ee\u6743\u9650\u3001\u4e0a\u4f20\u4e0b\u8f7d\u901f\u5ea6\u9650\u5236\u7b49\u5404\u79cd\u53c2\u6570\u3002<\/p>\n

4.\u542f\u52a8FTP\u670d\u52a1<\/b><\/p>\n

\u5b8c\u6210\u914d\u7f6e\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8FTP\u670d\u52a1\uff1a`sudo systemctl start vsftpd`<\/p>\n

5.\u9632\u706b\u5899\u8bbe\u7f6e<\/b><\/p>\n

\u4e3a\u4e86\u786e\u4fddFTP\u670d\u52a1\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\uff0c\u6211\u4eec\u9700\u8981\u5728\u9632\u706b\u5899\u4e2d\u5f00\u653eFTP\u7684\u76f8\u5173\u7aef\u53e3\u3002\u4f8b\u5982\uff0c\u4f7f\u7528iptables\u547d\u4ee4\u5f00\u653eFTP\u7684\u9ed8\u8ba4\u7aef\u53e321\uff1a`sudo iptables -A INPUT -p tcp --dport 21 -j ACCEPT`<\/p>\n

linux \u5b89\u88c5ftp\u670d\u52a1_linux \u5b89\u88c5ftp\u670d\u52a1_linux \u5b89\u88c5ftp\u670d\u52a1<\/p>\n

6.\u6d4b\u8bd5FTP\u670d\u52a1<\/b><\/p>\n

\u901a\u8fc7\u4f7f\u7528FTP\u5ba2\u6237\u7aef\u5de5\u5177\uff08\u5982FileZilla\uff09linux \u5b89\u88c5ftp\u670d\u52a1<\/strong>\uff0c\u6211\u4eec\u53ef\u4ee5\u6d4b\u8bd5FTP\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c\u3002\u8f93\u5165\u670d\u52a1\u5668\u5730\u5740\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u8fde\u63a5\u5230FTP\u670d\u52a1\u5668\uff0c\u5e76\u8fdb\u884c\u4e0a\u4f20\u4e0b\u8f7d\u64cd\u4f5c\u7ea2\u5e3d\u5b50linux\uff0c\u4ee5\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38\u3002<\/p>\n

7.\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5<\/b><\/p>\n

\u5728\u5b89\u88c5\u548c\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u5982\u65e0\u6cd5\u8fde\u63a5\u3001\u6743\u9650\u9519\u8bef\u7b49\u3002\u9488\u5bf9\u8fd9\u4e9b\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\u3001\u4fee\u6539\u7528\u6237\u6743\u9650\u7b49\u65b9\u5f0f\u8fdb\u884c\u6392\u67e5\u548c\u89e3\u51b3\u3002<\/p>\n

8.\u5b89\u5168\u6027\u8003\u8651<\/b><\/p>\n

\u4e3a\u4e86\u4fdd\u969cFTP\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u4e00\u4e9b\u63aa\u65bd\uff0c\u5982\u7981\u7528\u533f\u540d\u767b\u5f55\u3001\u9650\u5236\u7528\u6237\u8bbf\u95ee\u8def\u5f84\u3001\u542f\u7528SSL\/TLS\u52a0\u5bc6\u7b49\u3002\u8fd9\u4e9b\u63aa\u65bd\u53ef\u4ee5\u6709\u6548\u5730\u4fdd\u62a4\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u3002<\/p>\n

9. FTP\u5907\u4efd<\/a>\u7b56\u7565<\/b><\/p>\n

\u4e3a\u4e86\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u548c\u5b8c\u6574\u6027linux \u5b89\u88c5ftp\u670d\u52a1<\/strong>\uff0c\u6211\u4eec\u5e94\u8be5\u5b9a\u671f\u5907\u4efdFTP\u670d\u52a1\u5668\u4e0a\u7684\u91cd\u8981\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u6216\u8005\u5de5\u5177\u5b9e\u73b0\u81ea\u52a8\u5316\u5907\u4efd\uff0c\u5e76\u5c06\u5907\u4efd\u6570\u636e\u5b58\u50a8\u5728\u5b89\u5168\u53ef\u9760\u7684\u5730\u65b9\u3002<\/p>\n

10.\u9ad8\u7ea7\u529f\u80fd\u6269\u5c55<\/b><\/p>\n

\u9664\u4e86\u57fa\u672c\u7684\u6587\u4ef6\u4f20\u8f93\u529f\u80fd\u5916\uff0cFTP\u670d\u52a1\u5668\u8fd8\u652f\u6301\u8bb8\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u865a\u62df\u7528\u6237\u3001\u9650\u5236\u4e0a\u4f20\u4e0b\u8f7d\u901f\u5ea6\u3001\u9650\u5236\u8bbf\u95eeIP\u7b49\u3002\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u6269\u5c55FTP\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u7ecf\u9a8c\u5206\u4eab\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5927\u5bb6\u987a\u5229\u5b89\u88c5\u548c\u914d\u7f6eLinux\u7cfb\u7edf\u4e0a\u7684FTP\u670d\u52a1\u3002\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u4e0d\u8981\u6c14\u9981\uff0c\u591a\u5c1d\u8bd5\u548c\u67e5\u9605\u76f8\u5173\u6587\u6863\uff0c\u76f8\u4fe1\u4f60\u4e00\u5b9a\u80fd\u591f\u6210\u529f\u642d\u5efa\u81ea\u5df1\u7684FTP\u670d\u52a1\u5668\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u5f00\u59cb\u5b89\u88c5FTP\u670d\u52a1\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u5b89\u88c5FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982apt\u3001yum\u6216\u8005dnf\u7b49\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b89\u88c5\u6240\u9009\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0cFTP\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e\/etc\/vsftpd.\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u6216\u8005\u5de5\u5177\u5b9e\u73b0\u81ea\u52a8\u5316\u5907\u4efd\uff0c\u5e76\u5c06\u5907\u4efd\u6570\u636e\u5b58\u50a8\u5728\u5b89\u5168\u53ef\u9760\u7684\u5730\u65b9\u3002<\/p>\n","protected":false},"author":1,"featured_media":285290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-285289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/285289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=285289"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/285289\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/285290"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=285289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=285289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=285289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}