{"id":24,"date":"2023-02-12T17:49:02","date_gmt":"2023-02-12T09:49:02","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=24"},"modified":"2023-02-12T18:48:49","modified_gmt":"2023-02-12T10:48:49","slug":"centos-install-vsftp","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/12\/centos-install-vsftp\/","title":{"rendered":"CentOS\u4e0b\u5b89\u88c5\u914d\u7f6eVsFTP"},"content":{"rendered":"<h2>\u67e5\u8be2\u7cfb\u7edf\u7248\u672c<\/h2>\n<pre><code class=\"language-bash\"># uname -a<\/code><\/pre>\n<h2>el7(CentOS 7)<\/h2>\n<pre><code class=\"language-bash\"># yum install vsftpd\n# which nologin\n\/usr\/sbin\/nologin\n# useradd -d \/data\/www -s \/usr\/sbin\/nologin www\n# passwd www\n# vim \/etc\/vsftpd\/vsftpd.conf\n    anonymous_enable=NO\n    local_enable=YES\n    write_enable=YES\n    chroot_local_user=YES\n# systemctl start vsftpd\n# systemctl enable vsftpd\n# chmod a-w \/data\/www  \/\/\u89e3\u51b3500 OOPS: vsftpd: refusing to run with writable root inside chroot()\n# mkdir \/data\/www\/index\n# chown -R www \/data\/www\/index<\/code><\/pre>\n<h2>el6(CentOS 6)<\/h2>\n<pre><code class=\"language-bash\"># yum install vsftpd\n# which nologin\n\/sbin\/nologin\n# useradd -d \/data\/www -s \/sbin\/nologin www\n# passwd www\n# vim \/etc\/vsftpd\/vsftpd.conf\n    anonymous_enable=NO\n    local_enable=YES\n    write_enable=YES\n    chroot_local_user=YES\n# service vsftpd start\n# chkconfig --add vsftpd\n# chkconfig --list<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u8be2\u7cfb\u7edf\u7248\u672c # uname -a el7(CentOS 7) # yum install vsftpd #  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[24],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-vsftp"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}