{"id":293993,"date":"2024-10-27T20:04:47","date_gmt":"2024-10-27T12:04:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/rhzlxtzazfrj.html"},"modified":"2024-10-27T20:04:47","modified_gmt":"2024-10-27T12:04:47","slug":"rhzlxtzazfrj","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhzlxtzazfrj.html","title":{"rendered":"\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e2d\u5b89\u88c5 ftp \u8f6f\u4ef6\uff1f"},"content":{"rendered":"

\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u8bb2\u89e3\u201clinux\u4e2d\u96be\u4ee5\u4f7f\u7528ftp\u547d\u4ee4<\/a>\u5982\u4f55\u89e3\u51b3\u201d\uff0c\u611f\u5174\u8da3\u7684\u540c\u5b66\u4e0d\u59a8\u6765\u77a7\u77a7\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u65b9\u5f0f\u64cd\u4f5c\u7b80\u5355\u5feb\u6377\uff0c\u5b9e\u7528\u6027\u5f3a\u3002\u4e0b\u8fb9\u5c31\u8ba9\u5c0f\u7f16\u6765\u5e26\u4f60\u4eec\u5b66\u4e60\u201clinux\u4e2d\u96be\u4ee5\u4f7f\u7528ftp\u547d\u4ee4\u5982\u4f55\u89e3\u51b3\u201d\u5427!<\/p>\n

\u89e3\u51b3\u65b9\u5f0f\uff1a1\u3001RedHat\u7cfb\u7edf\u7528\u201cyuminstallftp-y\u201d\u5b89\u88c5ftp\u5373\u53ef\uff1b2\u3001Debian\u7cfb\u7edf\u7528\u201captinstallftp-y\u201d\u5b89\u88c5ftp\u5373\u53ef\uff1b3\u3001SUSE\u7cfb\u7edf\u7528\u201czypperinstallftp\u201d\u5b89\u88c5ftp\u5373\u53ef\u3002<\/p>\n

\u672c\u6559\u7a0b\u64cd\u4f5c\u73af\u5883\uff1aRedHat8.2&&Debian11.0&&SUSE15\u7cfb\u7edf\u3001DellG3\u7b14\u8bb0\u672c\u3002<\/p>\n

linux\u4e2d\u96be\u4ee5\u4f7f\u7528ftp\u547d\u4ee4\u5982\u4f55\u529e<\/p>\n

\u6ca1\u6709\u5b89\u88c5ftp\u987e\u5ba2\u7aef\u90fd\u4f1a\u63d0\u793a\u6ca1\u6709ftp\u547d\u4ee4\uff0c\u89e3\u51b3\u65b9\u5f0f\u662f\u5b89\u88c5ftp\u8f6f\u4ef6\u5305\u5373\u53ef\u3002<\/p>\n

\u5b89\u88c5ftp\u8f6f\u4ef6\u5305\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n

1\u3001RedHat\u7cfb<\/p>\n

\n

sudo\u00a0yum\u00a0install\u00a0ftp\u00a0-y<\/code><\/pre>\n<\/p>\n

2\u3001Debian\u7cfb<\/p>\n

\n

sudo\u00a0apt\u00a0install\u00a0ftp\u00a0-y<\/code><\/pre>\n<\/p>\n

\u4e0b\u8f7d\u6587\u4ef6\u53d8\u6210php\u600e\u4e48\u89e3\u51b3_\u4e0b\u8f7d\u6587\u4ef6\u7684\u8f6f\u4ef6_linux\u4e0b\u8f7dftp\u6587\u4ef6<\/p>\n

3\u3001SUSE<\/p>\n

\n

sudo\u00a0zypper\u00a0install\u00a0ftp<\/code><\/pre>\n<\/p>\n

\u5b89\u88c5\u540e\u5373\u53ef\u4f7f\u7528ftp\u547d\u4ee4\u3002<\/p>\n

\u6269\u5145\u77e5\u8bc6\uff1a<\/p>\n

1.\u8054\u63a5ftp\u670d\u52a1\u5668<\/p>\n

\u683c\u5f0f\uff1aftp[hostname|ip-address]<\/p>\n

a)\u5728linux\u547d\u4ee4\u884c\u4e0b\u8f93\u5165\uff1a<\/p>\n

ftp192.168.1.1<\/p>\n

linux\u4e0b\u8f7dftp\u6587\u4ef6_\u4e0b\u8f7d\u6587\u4ef6\u53d8\u6210php\u600e\u4e48\u89e3\u51b3_\u4e0b\u8f7d\u6587\u4ef6\u7684\u8f6f\u4ef6<\/p>\n

b)\u670d\u52a1\u5668\u5bfb\u95ee\u4f60\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5206\u522b\u8f93\u5165\u7528\u6237\u540d\u548c\u76f8\u5e94\u5bc6\u7801\uff0c\u5f85\u8ba4\u8bc1\u901a\u8fc7\u5373\u53ef\u3002<\/p>\n

2.\u4e0b\u8f7d\u6587\u4ef6<\/p>\n

\u4e0b\u8f7d\u6587\u4ef6\u4e00\u822c\u7528get\u548cmget\u8fd9\u4e24\u6761\u547d\u4ee4\u3002<\/p>\n

a)get<\/p>\n

\u683c\u5f0f\uff1aget[remote-file][local-file]<\/p>\n

\u5c06\u6587\u4ef6\u4ece\u8fdc\u7aef\u4e3b\u673a\u4e2d\u4f20\u9001\u81f3\u672c\u5730\u4e3b\u673a\u4e2d\u3002<\/p>\n

\u5982\u8981\u83b7\u53d6\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\/usr\/your\/1.htmlinux\u4e0b\u8f7dftp\u6587\u4ef6<\/strong>\uff0c\u5219\uff1a<\/p>\n

\n

ftp>\u00a0get\u00a0\/usr\/your\/1.htm\u00a01.htm\u00a0(\u56de\u8f66)b)\u00a0mget\u3000\u3000\u3000<\/code><\/pre>\n<\/p>\n

linux\u4e0b\u8f7dftp\u6587\u4ef6_\u4e0b\u8f7d\u6587\u4ef6\u7684\u8f6f\u4ef6_\u4e0b\u8f7d\u6587\u4ef6\u53d8\u6210php\u600e\u4e48\u89e3\u51b3<\/p>\n

\u683c\u5f0f\uff1amget[remote-files]<\/p>\n

\u4ece\u8fdc\u7aef\u4e3b\u673a\u63a5\u6536\u4e00\u6279\u6587\u4ef6\u81f3\u672c\u5730\u4e3b\u673a\u3002<\/p>\n

\u5982\u8981\u83b7\u53d6\u670d\u52a1\u5668\u4e0a\/usr\/your\/\u4e0b\u7684\u6240\u6709\u6587\u4ef6linux\u865a\u62df\u4e3b\u673a\uff0c\u5219\uff1a<\/p>\n

\n

ftp>\u00a0cd\u00a0\/usr\/your\/ftp>\u00a0mget\u00a0*.*\u00a0(\u56de\u8f66)<\/code><\/pre>\n<\/p>\n

#\u6b64\u65f6\u6bcf\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\uff0c\u5c31\u4f1a\u6709\u63d0\u793a\u3002\u5047\u5982\u8981\u9664\u6389\u63d0\u793a\uff0c\u5219\u5728mget*.*\u547d\u4ee4\u524d\u5148\u6267\u884c:promptoff<\/p>\n

\u6ce8\u610f\uff1a\u6587\u4ef6\u90fd\u4e0b\u8f7d\u5230\u4e86linux\u4e3b\u673a\u7684\u5f53\u524d\u76ee\u5f55\u4e0b\u3002\u4f8b\u5982linux\u4e0b\u8f7dftp\u6587\u4ef6<\/strong>\uff0c\u5728\/usr\/my\u4e0b\u8fd0\u884c\u7684ftp\u547d\u4ee4\uff0c\u5219\u6587\u4ef6\u90fd\u4e0b\u8f7d\u5230\u4e86\/usr\/my\u4e0b\u3002<\/p>\n

3.\u4e0a\u4f20\u6587\u4ef6<\/p>\n

a)put<\/p>\n

\u683c\u5f0f\uff1aputlocal-file[remote-file]<\/p>\n

\u5c06\u672c\u5730\u4e00\u4e2a\u6587\u4ef6\u4f20\u9001\u81f3\u8fdc\u7aef\u4e3b\u673a\u4e2d\u3002<\/p>\n

\u5982\u8981\u628a\u672c\u5730\u76841.htm\u4f20\u9001\u5230\u8fdc\u7aef\u4e3b\u673a\/usr\/your,\u5e76\u66f4\u540d\u4e3a2.htm\uff0c\u5219\uff1a<\/p>\n

ftp>put1.htm\/usr\/your\/2.htm(\u56de\u8f66)<\/p>\n

b)mput<\/p>\n

\u683c\u5f0f\uff1amputlocal-files<\/p>\n

\u5c06\u672c\u5730\u4e3b\u673a\u4e2d\u4e00\u6279\u6587\u4ef6\u4f20\u9001\u81f3\u8fdc\u7aef\u4e3b\u673a\u3002<\/p>\n

\u5982\u8981\u628a\u672c\u5730\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709html\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\/usr\/your\/\u4e0b\uff0c\u5219\uff1a<\/p>\n

\n

ftp>\u00a0cd\u00a0\/usr\/your\u00a0\uff08\u56de\u8f66\uff09ftp>\u00a0mput\u00a0*.htm\u3000\uff08\u56de\u8f66\uff09<\/code><\/pre>\n<\/p>\n

#\u6ce8\u610f\uff1a\u4e0a\u4f20\u6587\u4ef6\u90fd\u6765\u81ea\u4e8e\u4e3b\u673a\u7684\u5f53\u524d\u76ee\u5f55\u4e0b\u3002\u4f8b\u5982\uff0c\u5728\/usr\/my\u4e0b\u8fd0\u884c\u7684ftp\u547d\u4ee4\uff0c\u5219\u53ea\u6709\u5728\/usr\/my\u4e0b\u7684\u6587\u4ef6linux\u624d\u80fd\u4e0a\u4f20\u5230\u670d\u52a1\u5668\/usr\/your\u4e0b\u3002<\/p>\n

4.\u65ad\u6389\u8054\u63a5<\/p>\n

bye\uff1a\u4e2d\u65ad\u4e0e\u670d\u52a1\u5668\u7684\u8054\u63a5\u3002<\/p>\n

ftp>bye(\u56de\u8f66)<\/p>\n

5\u3001\u8fde\u63a5\u62a5\u9519\uff1a<\/p>\n

\n

ftp\u00a0192.168.1.1ftp:\u00a0connect:\u00a0Connectio<\/strong><\/a>n\u00a0refused<\/code><\/pre>\n<\/p>\n

\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n

\n

[root@rac1\u00a0etc]#\u00a0vsftpd\u00a0\/etc\/vsftpd\/vsftpd.conf\u00a0&[1]\u00a09555<\/code><\/pre>\n<\/p>\n

\u5230\u6b64\uff0c\u76f8\u4fe1\u4f60\u4eec\u5bf9\u201clinux\u4e2d\u96be\u4ee5\u4f7f\u7528ftp\u547d\u4ee4\u5982\u4f55\u89e3\u51b3\u201d\u6709\u4e86\u66f4\u6df1\u7684\u4e86\u89e3\uff0c\u4e0d\u59a8\u6765\u5b9e\u9645\u64cd\u4f5c\u4e00\u756a\u5427\uff01\u8fd9\u513f\u662f\u7f16\u7a0b\u7f51\u7f51\u7ad9ubuntu linux\uff0c\u66f4\u591a\u76f8\u5173\u5185\u5bb9\u53ef\u4ee5\u6b65\u5165\u76f8\u5173\u9891\u9053\u8fdb\u884c\u67e5\u8be2\uff0c\u5173\u6ce8\u6211\u4eec\uff0c\u7ee7\u7eed\u5b66\u4e60\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

linux\u4e2d\u65e0\u6cd5\u4f7f\u7528ftp\u547d\u4ee4\u600e\u4e48\u529e\u5b89\u88c5ftp\u8f6f\u4ef6\u5305\u65b9\u6cd5\u5982\u4e0b\uff1a\u5b89\u88c5\u540e\u5373\u53ef\u4f7f\u7528ftp\u547d\u4ee4\u3002\u4e0b\u8f7d\u6587\u4ef6\u901a\u5e38\u7528get\u548cmget\u8fd9\u4e24\u6761\u547d\u4ee4\u3002\u6ce8\u610f\uff1a\u6587\u4ef6\u90fd\u4e0b\u8f7d\u5230\u4e86linux\u4e3b\u673a\u7684\u5f53\u524d\u76ee\u5f55\u4e0b\u3002\u6bd4\u5982\uff0c\u5728\/usr\/my\u4e0b\u8fd0\u884c\u7684ftp\u547d\u4ee4\uff0c\u5219\u6587\u4ef6\u90fd\u4e0b\u8f7d\u5230\u4e86\/usr\/my\u4e0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":293994,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3884],"class_list":["post-293993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-fazdxtlmlh"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293993"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293993\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293994"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}