{"id":50,"date":"2018-10-05T22:43:17","date_gmt":"2018-10-05T14:43:17","guid":{"rendered":"http:\/\/www.eait.co\/?p=50"},"modified":"2018-11-02T02:40:20","modified_gmt":"2018-11-01T18:40:20","slug":"lnmp%e4%b8%8bftp%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e4%bd%bf%e7%94%a8pureftpd%e5%92%8cproftpd","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=50","title":{"rendered":"LNMP\u4e0bFTP\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u4f7f\u7528(Pureftpd\u548cProftpd)"},"content":{"rendered":"<p>FTP\u662f\u7f51\u7ad9\u6587\u4ef6\u7ef4\u62a4\u4e2d\u4f7f\u7528\u6bd4\u8f83\u591a\u7684\uff0c\u76ee\u524dLNMP\u4e00\u952e\u5b89\u88c5\u5305\u4e2d\u6709Pureftpd\u548cProftpd\u670d\u52a1\u5668\u5b89\u88c5\u811a\u672c\uff0cLNMP\u9ed8\u8ba4\u4e0d\u5b89\u88c5\u4efb\u4f55FTP\u670d\u52a1\u5668\uff0c\u9700\u8981\u7528\u6237\u81ea\u884c\u5b89\u88c5\uff081.2\u5f00\u59cb\u4e0d\u518d\u63d0\u4f9bproftpd\u7684\u5b89\u88c5\u811a\u672c\uff09\u3002\u4e00\u3001Pureftpd<\/p>\n<p>LNMP\u4e00\u952e\u5b89\u88c5\u5305\u91cc<strong>1.3\u53ca\u66f4\u9ad8\u7248\u672c\u4e0d\u9700\u8981MySQL\u652f\u6301\uff0c\u65e0\u56fe\u50cf\u754c\u9762\u6ca1\u6709http:\/\/ip\/ftp\/\u7ba1\u7406\u754c\u9762\uff0c\u53ea\u80fd\u4f7f\u7528\u547d\u4ee4lnmp ftp {add|del|edit}\u8fdb\u884c\u7ba1\u7406\u3002<\/strong>1.2\u53ca\u4ee5\u4e0b\u7248\u672cPureftpd\u5b89\u88c5\u811a\u672c\u662f\u9700\u8981MySQL\u652f\u6301\u7684\uff0c\u5b89\u88c5\u524d\u9700\u8981\u5df2\u7ecf\u5b89\u88c5\u597dLNMP\uff0c\u8fd9\u4e2a\u81ea\u5e26\u4e00\u4e2aPHP\u7f16\u5199\u7684\u7528\u6237\u7ba1\u7406\u754c\u9762\u3002\u5b89\u88c5<\/p>\n<p>\u8fdb\u5165lnmp\u89e3\u538b\u540e\u7684\u76ee\u5f55\uff0c\u5982cd lnmp1.4 \u5176\u4ed6\u7248\u672c\u7684\u8bdd\u81ea\u884c\u66f4\u6539\u548c\u786e\u5b9a\u76ee\u5f55\u4f4d\u7f6e\uff0c\u6267\u884c\uff1a<strong>.\/pureftpd.sh<\/strong>\u00a0\u4f1a\u663e\u793a\u5982\u4e0b\u56fe\uff081.2\u548c1.3\u53ca\u66f4\u9ad8\u7248\u672c\u7684\u5b89\u88c5\u8fc7\u7a0b\u6709\u4e9b\u5dee\u5f02\uff0c1.3\u53ca\u66f4\u9ad8\u7248\u672c\u76f4\u63a5\u56de\u8f66\u5b89\u88c5\u4e0d\u9700\u8981\u586b\u5199\u5176\u4ed6\u4fe1\u606f\uff0c1.2\u7248\u672c\u5b89\u88c5\u5982\u4e0b\uff1a\uff09\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2013\/05\/4137597107.png\" alt=\"lnmp\u5b89\u88c5pureftpd\u670d\u52a1\u5668\" \/><br \/>\n\u6309\u63d0\u793a\u8f93\u5165\u5f53\u524dMySQL\u7684root\u5bc6\u7801\uff0c\u8f93\u5165\u5b8c\u6210\uff0c\u56de\u8f66\u786e\u8ba4\uff0c\u4f1a\u63d0\u793a\u5982\u4e0b\u4fe1\u606f\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2013\/05\/3184421094.png\" alt=\"lnmp\u5b89\u88c5pureftpd\u670d\u52a1\u5668\" \/>\u8fd9\u4e00\u6b65\u662f\u8bbe\u7f6eFTP\u7528\u6237\u7ba1\u7406\u540e\u53f0\u7684\u767b\u9646\u5bc6\u7801\u3002\u8f93\u5165\u5b8c\u6210\u56de\u8f66\u786e\u8ba4<br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2013\/05\/769854277.png\" alt=\"lnmp\u5b89\u88c5pureftpd\u670d\u52a1\u5668\" \/><br \/>\n\u56e0\u4e3aPHP\u7ba1\u7406\u540e\u53f0\u9700\u8981\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u6240\u4ee5\u4f1a\u5728MySQL\u4e0a\u521b\u5efa\u4e00\u4e2aftp\u7528\u6237\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u7684\u5c31\u662f\u8fd9\u4e2a\u7528\u6237\u7684\u5bc6\u7801\u3002\u8f93\u5165\u5b8c\u6210\uff0c\u56de\u8f66\u786e\u8ba4\u3002<\/p>\n<p>\u56de\u8f66 \u663e\u793a &#8220;Press any key to start install Pure-FTPd&#8230;&#8221; \u518d\u6b21\u56de\u8f66\u786e\u8ba4\u5373\u53ef\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<p><strong>1.3\u53ca\u66f4\u9ad8\u7248\u672c\u6ca1\u6709\u56fe\u50cf\u754c\u9762\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\u6ca1\u6709http:\/\/ip\/ftp\/ \u4e0d\u80fd\u7f51\u9875\u8fdb\u884c\u7ba1\u7406\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01<br \/>\n\u53ea\u80fd\u4f7f\u7528lnmp ftp {add|del|edit}\u8fdb\u884c\u7ba1\u7406\u3002<\/strong><\/p>\n<h3>\u6dfb\u52a0\u7528\u6237<\/h3>\n<p>1.3\u53ca\u66f4\u9ad8\u7248\u672c\u6dfb\u52a0ftp\u8d26\u53f7\u6267\u884c\uff1alnmp ftp add<br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2015\/12\/lnmpftpadd.png\" alt=\"lnmp\u6dfb\u52a0ftp\u8d26\u53f7\" \/><br \/>\n\u6309\u63d0\u793a\u5206\u522b\u8f93\u5165\u8981\u521b\u5efa\u7684ftp\u8d26\u53f7\u3001\u5bc6\u7801\u53caftp\u8d26\u53f7\u5bf9\u5e94\u7684\u76ee\u5f55(<strong>\u76ee\u5f55\u5fc5\u987b\u662f\u4ee5\/\u5f00\u59cb\u7684\u7edd\u5bf9\u76ee\u5f55<\/strong>)<br \/>\n\u540e\u9762\u51fa\u73b0\u7684Password: \u548c Enter it again: \u4e0d\u9700\u8981\u7406\u4f1a\uff0c\u53ea\u662f\u63d0\u793a\uff0c\u811a\u672c\u90fd\u662f\u81ea\u52a8\u5b8c\u6210\u7684\u3002<\/p>\n<p>1.2\u53ca\u4ee5\u4e0b\u7248\u672c\u6dfb\u52a0\u7528\u6237\u5982\u4e0b\uff1a<br \/>\n\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u6d4f\u89c8\u5668\u8f93\u5165\uff1a http:\/\/\u4f60\u7684ip\/ftp\/ \u7528\u521a\u624d\u8bbe\u7f6e\u7684FTP\u7528\u6237\u7ba1\u7406\u540e\u53f0\u7684\u767b\u9646\u5bc6\u7801\u767b\u9646\u3002\u767b\u9646\u540e\u754c\u9762\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2013\/05\/376648928.png\" alt=\"lnmp purefptd\u9762\u677f\" \/><br \/>\n\u6dfb\u52a0\u4e00\u4e2a\u7528\u6237\u540d\u5230\u4f60\u8981\u6dfb\u52a0\u7684\u76ee\u5f55\u3002<br \/>\nuid,gid \u90fd\u9009www\u3002<\/p>\n<p><a id=\"pureftpd-tips\" name=\"pureftpd-tips\"><\/a><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><br \/>\n\u6709\u7528\u6237\u53ef\u80fd\u627e\u4e0d\u5230\u9009\u62e9\u76ee\u5f55\u7684\u5730\u65b9\uff0c\u9009\u76ee\u5f55\u662f\u70b9\u51fb\u201d\u4e3b\u76ee\u5f55\u201c \u6700\u540e\u9762\u6709\u4e2a\u5706\u5f62\u5957\u7740\u4e09\u89d2\u5f62\u7684\u56fe\u6807\uff0c\u70b9\u4e00\u4e0b\u5c31\u4f1a\u51fa\u6765\u3002<br \/>\n\u5982\u679c\u63d0\u793a\u65e0\u6cd5\u8bfb\u53d6\u76ee\u5f55\u3001\u767b\u9646\u8d85\u65f6\u6216\u62a5502 Bad Gateway\u9519\u8bef\uff0c\u4fee\u6539\/usr\/local\/php\/etc\/php.ini \u67e5\u627eopen_basedir\uff0c\u5c06\u6709\/home\/wwwroot\/default\u7684\u51e0\u884c\u524d\u9762\u52a0;\u6ce8\u91ca\u6389\uff0c\u91cd\u542fphp-fpm\u751f\u6548\u3002<br \/>\nLNMP 1.2\u7684\u8bdd\u5728\/home\/wwwroot\/default\/.user.ini\u91cc\u8bbe\u7f6e\uff0c\u5c06\u91cc\u9762\u7684\u5185\u5bb9\u5220\u9664\uff0c\u91cd\u542fphp-fpm\u751f\u6548\u540e\u5373\u53ef\u3002<br \/>\n.user.ini\u6587\u4ef6\u65e0\u6cd5\u76f4\u63a5\u4fee\u6539\uff0c\u800c\u4e14\u662f\u9690\u85cf\u6587\u4ef6\u53ef\u80fd\u5728winscp\u4e0b\u53ef\u80fd\u65e0\u6cd5\u770b\u5230\uff0c\u5efa\u8bae\u4f7f\u7528<a href=\"http:\/\/www.vpser.net\/manage\/vi.html\" target=\"_blank\" rel=\"noopener\">vim\u7f16\u8f91\u5668<\/a>\u6216<a href=\"http:\/\/www.vpser.net\/manage\/nano.html\" target=\"_blank\" rel=\"noopener\">nano\u7f16\u8f91\u5668<\/a>\u8fdb\u884c\u4fee\u6539\u3002<br \/>\n\u4fee\u6539\u524d\u9700\u8981\u6267\u884c\uff1achattr -i \/home\/wwwroot\/default\/.user.ini<br \/>\n\u4fee\u6539\u5b8c\u6210\u540e\u518d\u6267\u884c\uff1achattr +i \/home\/wwwroot\/default\/.user.ini<\/p>\n<p>\u5982\u679c\u662fLNMPA\u6216LAMP\u7684\u8bdd\u9700\u8981\u4fee\u6539\/usr\/local\/apache\/conf\/extra\/httpd-vhosts.conf\u91cc\u9762\u7684php_admin_value open_basedir\u5728\u8be5\u884c\u524d\u9762\u52a0#\u76f4\u63a5\u6ce8\u91ca\u3002<\/p>\n<p>LNMP 1.2\u5f00\u59cb\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\uff1alnmp ftp {add|list|del} \u8fdb\u884cFTP\u8d26\u53f7\u7ba1\u7406\u3002<br \/>\n\u4f7f\u7528\u547d\u4ee4\u8fdb\u884c\u7ba1\u7406\u66f4\u65b9\u4fbf\u3002<\/p>\n<p>\u4fee\u6539\u7ba1\u7406\u9762\u677f\u767b\u5f55\u5bc6\u7801\uff1a<a href=\"http:\/\/bbs.vpser.net\/thread-2038-1-1.html\" target=\"_blank\" rel=\"noopener\">http:\/\/bbs.vpser.net\/thread-2038-1-1.html<\/a><\/p>\n<h3>\u5378\u8f7dPureftpd<\/h3>\n<p>\u6267\u884c\uff1a<strong>.\/pureftpd.sh uninstall<\/strong>\u00a0\u5373\u53ef\u5bf9pureftpd\u8fdb\u884c\u5378\u8f7d\u3002<\/p>\n<p>\u5b89\u88c5\u7684FTP\u670d\u52a1\u5668\u5747\u4e3a\u666e\u901a\u8fde\u63a5\u672a\u52a0\u5bc6\u3001\u975eTLS\u52a0\u5bc6\u7b49\u8fde\u63a5\uff0c\u8fde\u63a5\u65f6\u8bf7\u6ce8\u610f\u9009\u62e9\u3002<\/p>\n<h2>\u4e8c\u3001Proftpd<\/h2>\n<p>\u5728LNMP 1.0\u4e2d\u589e\u52a0\u4e86Proftpd\u670d\u52a1\u5668\u5b89\u88c5\u811a\u672c\uff0cproftpd\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5bf9\u6743\u9650\u8fdb\u884c\u66f4\u591a\u7684\u8bbe\u7f6e\u3002<br \/>\nProftpd\u53ef\u4ee5\u5355\u72ec\u5b89\u88c5\uff0c\u4e0d\u9700\u8981\u5176\u4ed6\u5982MySQL\u7684\u652f\u6301\uff0c\u5b8c\u5168\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<h3>\u5b89\u88c5<\/h3>\n<p>\u8fdb\u5165lnmp1.0\u89e3\u538b\u540e\u7684\u76ee\u5f55\uff0c\u6267\u884c\uff1a<strong>.\/proftpd.sh<\/strong><br \/>\n<img decoding=\"async\" src=\"https:\/\/lnmp.org\/usr\/uploads\/2013\/05\/507983747.png\" alt=\"lnmp proftpd\u670d\u52a1\u5668\u5b89\u88c5\" \/><br \/>\n\u63d0\u793a\u201cPress any key to start install ProFTPd&#8230; \u201d\u540e\u56de\u8f66\u786e\u8ba4\u5c31\u4f1a\u81ea\u52a8\u5b89\u88c5Proftpd<\/p>\n<h3>\u6dfb\u52a0FTP\u7528\u6237<\/h3>\n<p>\u6267\u884c\uff1a<strong>\/root\/proftpd_vhost.sh<\/strong><br \/>\n\u63d0\u793a\u201cPlease input a username:\u201d \u540e\u8f93\u5165\u8981\u6dfb\u52a0\u7684FTP\u7528\u6237\u540d\uff0c\u56de\u8f66\u786e\u8ba4\u3002<br \/>\n\u4e4b\u540e\u4f1a\u63d0\u793a\u201cPlease set password for \u524d\u9762\u4f60\u8bbe\u7684\u7528\u6237\u540d:\u201d \u8f93\u5165\u4f60\u8981\u8bbe\u7f6e\u7684\u5bc6\u7801<br \/>\n\u56de\u8f66\u786e\u8ba4\u540e\u540e\u4f1a\u63d0\u793a\u201cPlease input full path:\u201d\uff0c\u8fd9\u91cc\u9700\u8981\u8f93\u5165FTP\u7528\u6237\u8bbe\u7f6e\u5230\u54ea\u4e2a\u76ee\u5f55\uff0c\u9700\u8981\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u8f93\u5165\u5b8c\u56de\u8f66\u786e\u8ba4\uff0c\u63d0\u793a\u201cPress any key to start create ProFTPd virtul host&#8230;\u201d\u540e\u518d\u6b21\u56de\u8f66\u786e\u8ba4FTP\u7528\u6237\u5c31\u4f1a\u6dfb\u52a0\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FTP\u662f\u7f51\u7ad9\u6587\u4ef6\u7ef4\u62a4\u4e2d\u4f7f\u7528\u6bd4\u8f83\u591a\u7684\uff0c\u76ee\u524dLNMP\u4e00\u952e\u5b89\u88c5\u5305\u4e2d\u6709Pureftpd\u548cProftpd\u670d\u52a1\u5668\u5b89\u88c5\u811a\u672c\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-other","category-index"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":2,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}