{"id":290884,"date":"2024-04-17T05:19:04","date_gmt":"2024-04-16T21:19:04","guid":{"rendered":"https:\/\/lrxjmw.cn\/lhjxffwqglks.html"},"modified":"2024-04-17T05:19:04","modified_gmt":"2024-04-16T21:19:04","slug":"lhjxffwqglks","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lhjxffwqglks.html","title":{"rendered":"Linux\u73af\u5883\u4e0bFTP\u670d\u52a1\u5168\u653b\u7565\uff0c\u5feb\u901f\u4e86\u89e3FTP\u8fd0\u884c\u72b6\u6001"},"content":{"rendered":"
FTP\u670d\u52a1\u7b80\u4ecb<\/b><\/p>\n
\u5728Linux<\/a>\u73af\u5883\u4e0b\uff0cFTP\uff08\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\uff09\u51ed\u501f\u5176\u9ad8\u6548\u7684\u6587\u4ef6\u4f20\u8f93\u529f\u80fd\u6210\u4e3a\u7f51\u7edc\u6570\u636e\u4ea4\u6362\u7684\u9996\u9009\u65b9\u5f0f\u4e4b\u4e00\u3002\u501f\u52a9FTP\u670d\u52a1\u5668\uff0c\u7528\u6237\u80fd\u8fdb\u884c\u4fbf\u6377\u8fc5\u901f\u7684\u6587\u4ef6\u4e0a\u4f20\u53ca\u4e0b\u8f7d\u64cd\u4f5c\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u4fe1\u606f\u7684\u8f7b\u677e\u5171\u4eab\u3002\u82e5\u9700\u67e5\u8be2FTP\u8fd0\u884c\u60c5\u51b5\uff0c\u53ef\u5229\u7528\u76f8\u5e94\u547d\u4ee4<\/a>\u548c\u5de5\u5177\u4fbf\u53ef\u8f7b\u6613\u5b8c\u6210\u3002<\/p>\n \u68c0\u67e5FTP\u670d\u52a1\u662f\u5426\u8fd0\u884c<\/b><\/p>\n \u9996\u5148\uff0c\u9a8c\u8bc1FTP\u670d\u52a1\u662f\u5426\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u3002\u6267\u884c\u5982\u4e0b\u6307\u4ee4\u67e5\u9a8cFTP\u670d\u52a1\u5668\u662f\u5426\u542f\u52a8\u65e0\u8bef\uff1a<\/p>\n ```<\/p>\n <\/p>\n systemctlstatusvsftpd<\/p>\n \u5904\u4e8eactive(running)\u72b6\u6001\u8868\u793aFTP\u670d\u52a1\u5728\u6b63\u5e38\u5de5\u4f5c\u4e2d\uff1b\u82e5\u4e3ainactive(dead)\uff0c\u5373\u4ee3\u8868\u670d\u52a1\u672a\u5f00\u542f\u3002\u5982\u9700\u542f\u52a8\uff0c\u53ef\u5c1d\u8bd5\u64cd\u4f5c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n sudosystemctlstartvsftpd<\/p>\n \u67e5\u770bFTP\u8fde\u63a5\u6570<\/b><\/p>\n <\/p>\n \u5145\u5206\u7406\u89e3\u5e76\u5173\u6ce8\u5f53\u524d\u7684FTP\u8fde\u63a5\u60c5\u51b5\uff0c\u5bf9\u76d1\u63a7\u670d\u52a1\u5668\u8fd0\u884c\u8d1f\u8377\u53ca\u6027\u80fd\u663e\u5f97\u81f3\u5173\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u83b7\u53d6\u5f53\u524dFTP\u8fde\u63a5\u6570\u91cf\u7684\u6307\u4ee4\uff1a<\/p>\n \u4f7f\u7528\u547d\u4ee4netstat-an\u5e76\u4ee5\u7ba1\u9053\u7b26\u53f7\"|\"\u5206\u9694\uff0c\u914d\u5408grep\u9009\u9879\":21\"\uff0c\u6700\u540e\u8c03\u7528wc-l\u547d\u4ee4\u6765\u7edf\u8ba1\u7f51\u7edc\u8fde\u63a5\u6570\u3002<\/p>\n \u6b64\u6307\u4ee4\u5c06\u8be6\u5217\u7aef\u53e321\uff08\u5373\u6807\u51c6FTP\u7aef\u53e3\uff09\u4e0a\u7684\u6240\u6709\u94fe\u63a5\u6570\u76ee\uff0c\u6709\u52a9\u4e8e\u5b9e\u65f6\u5bdf\u89c9\u8fc7\u5ea6\u94fe\u63a5\u6216\u8005\u5f02\u5e38\u8fde\u7ebf\u60c5\u51b5\u3002<\/p>\n \u76d1\u63a7FTP\u65e5\u5fd7<\/b><\/p>\n \u901a\u8fc7\u76d1\u63a7FTP\u65e5\u5fd7\uff0c\u53ef\u638c\u63e1\u7528\u6237\u8bbf\u95ee\u884c\u4e3a\u3001\u6587\u4ef6\u4f20\u8f93\u8be6\u51b5\u53ca\u6f5c\u5728\u5f02\u5e38\u4e8b\u4ef6\u3002\u4e00\u822c\u800c\u8a00\uff0cFTP\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u50a8\u5b58\u5728\/var\/log\u76ee\u5f55\uff0c\u901a\u8fc7\u8fd0\u884c\u5982\u4e0b\u6307\u4ee4\uff0c\u5373\u53ef\u67e5\u8be2\u6700\u65b0FTP\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n tail\/var\/log\/vsftpd.log<\/p>\n