{"id":271666,"date":"2023-05-08T04:00:52","date_gmt":"2023-05-07T20:00:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/gylxnjdwlfsg.html"},"modified":"2023-05-08T04:00:52","modified_gmt":"2023-05-07T20:00:52","slug":"gylxnjdwlfsg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/gylxnjdwlfsg.html","title":{"rendered":"\u5173\u4e8eLinux\u865a\u62df\u673a\u7684\u7f51\u8fde\u65b9\u5f0f\u6539\u4e3a\u4e86Bridge\u7684\u89e3\u91ca"},"content":{"rendered":"
1.\u5b89\u88c5FTP\u670d\u52a1\u5668<\/p>\n
#sudo\u662f\u8bb8\u7cfb\u7edf<\/a>\u7ba1\u7406\u5458\u8ba9\u666e\u901a\u7528\u6237\u6267\u884c\u4e00\u4e9b\u6216\u5219\u5168\u90e8\u7684root\u547d\u4ee4<\/a>\u7684\u4e00\u4e2a\u5de5\u5177<\/p>\n #apt-get\u662fdebian\uff0cubuntu\u53d1\u884c\u7248\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4e0e\u7ea2\u5e3d\u4e2d\u7684yum\u5de5\u5177\u5341\u5206\u7c7b\u4f3c\u3002apt-get\u547d\u4ee4\u901a\u5e38\u987b\u8981root\u6743\u9650\u6267\u884c\uff0c\u6240\u4ee5\u901a\u5e38\u8ddf\u968fsudo\u547d\u4ee4<\/p>\n [root@localhostftp]#sudoapt-getinstallvsftpd<\/p>\n 2.FTP\u670d\u52a1\u5668\u914d\u7f6e<\/p>\n vsftpd\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u662f:\/etc\/vsftpd\/vsftpd.conf<\/p>\n vsftpd\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55,\u5373FTP\u670d\u52a1\u5668\u7684\u4e3b\u76ee\u5f55:<\/p>\n <\/p>\n [root@localhostftp]#more\/etc\/passwd|grepftp<\/p>\n ftp:x:14:50:FTPUser:\/var\/ftp:\/sbin\/nologin<\/p>\n \u8fd9\u6837\u4f60\u8fd8\u80fd\u89c1\u5230FTP\u7684\u670d\u52a1\u5668\u7684\u76ee\u5f55\u5728\/var\/ftp\u5904<\/p>\n \u5047\u5982\u4f60\u60f3\u66f4\u6539\u670d\u52a1\u5668\u76ee\u5f55\u7684\u8def\u5f84,\u8fd9\u4e48\u4f60\u53ea\u8981\u66f4\u6539\/var\/ftp\u5230\u522b\u5904\u5c31\u884c\u4e86<\/p>\n [root@localhostftp]#vi\/etc\/vsftpd.conf<\/p>\n 3.\u4e25\u7981FTP\u670d\u52a1\u5668\u533f\u540d\u8bbf\u95ee<\/p>\n \n 4.\u5bb9\u8bb8\u672c\u5730\u7528\u6237\u4ee5\u548c\u7cfb\u7edf\u7528\u6237\u76f8\u540c\u7684\u5e10\u6237\u548c\u5bc6\u7801\u8054\u63a5\u8bbf\u95ee<\/p>\n \n 5.\u91cd\u542fFTP\u670d\u52a1\u5668<\/p>\n [root@localhostftp]#sudovsftpdrestart<\/p>\n 6.\u8bbe\u7f6e\u76ee\u5f55\u8bbf\u95ee\u6743\u9650<\/p>\n <\/p>\n [root@localhostftp]#mkdir\/var\/ftp\/myFolder<\/p>\n [root@localhostftp]#chmod777\/var\/ftp\/myFolder<\/p>\n [root@localhostftp]#servicevsftpdrestart<\/p>\n 7.\u83b7\u53d6guest(ubuntu)\u7684IP\u5730\u5740\uff0c\u4e4b\u540e\u5728windows\u4e0b\u901a\u8fc7ftp:\/\/[IP]\u8bbf\u95ee<\/p>\n \u987b\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/p>\nanonymous_enable=YES \u4e3a<\/pre>\n
anonymous_enable=NO<\/pre>\n<\/p>\n
local_enable=YES<\/pre>\n<\/p>\n