{"id":19710,"date":"2017-09-20T06:39:33","date_gmt":"2017-09-19T22:39:33","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/20\/%e5%9c%a8-centos-7-x-%e4%b8%8b%e5%ae%89%e8%a3%9d-proftpd-server\/"},"modified":"2021-03-18T17:25:09","modified_gmt":"2021-03-18T09:25:09","slug":"%e5%9c%a8-centos-7-x-%e4%b8%8b%e5%ae%89%e8%a3%9d-proftpd-server","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/20\/%e5%9c%a8-centos-7-x-%e4%b8%8b%e5%ae%89%e8%a3%9d-proftpd-server\/","title":{"rendered":"\u5728 CentOS 7.x \u4e0b\u5b89\u88dd Proftpd Server"},"content":{"rendered":"<p>\u53c3\u8003\u7db2\u7ad9\uff1a<br \/><a href=\"http:\/\/linux.onlinedoc.tw\/2016\/01\/centos7rhel7-proftpd-server.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux \uff0e \u7121\u9650: \u5728 CentOS7\/RHEL7 \u4e0a\u67b6\u8a2d Proftpd Server<\/a><\/p>\n<p>1. \u5b89\u88dd EPEL \u5957\u4ef6\u5eab<br \/># yum install epel-release<br \/># yum update<\/p>\n<p>2. \u5b89\u88dd Proftpd Server \u76f8\u95dc\u5957\u4ef6<br \/># yum install proftpd proftpd-ldap proftpd-mysql proftpd-utils<\/p>\n<p>3. \u9632\u706b\u7246\u8a2d\u5b9a<br \/># firewall-cmd &#8211;permanent &#8211;add-service=ftp<br \/># firewall-cmd &#8211;reload<br \/>\u6216<br \/># iptables -A INPUT -p tcp &#8211;syn -m state &#8211;state NEW &#8211;dport 21 -j ACCEPT<br \/>[@more@]<br \/>4. <br \/># cp \/etc\/proftpd.conf \/etc\/proftpd.conf.$(date +%F)<\/p>\n<p># yum install openssl<\/p>\n<p># openssl req -x509 -newkey rsa:1024 -keyout \/etc\/proftpd.d\/proftpd.key -out \/etc\/proftpd.d\/proftpd.crt -nodes -days 3650<br \/>Generating a 1024 bit RSA private key<br \/>&#8230;&#8230;&#8230;.++++++<br \/>&#8230;&#8230;++++++<br \/>writing new private key to &#8216;\/etc\/proftpd.d\/proftpd.key&#8217;<br \/>&#8212;&#8211;<br \/>You are about to be asked to enter information that will be incorporated<br \/>into your certificate request.<br \/>What you are about to enter is what is called a Distinguished Name or a DN.<br \/>There are quite a few fields but you can leave some blank<br \/>For some fields there will be a default value,<br \/>If you enter &#8216;.&#8217;, the field will be left blank.<br \/>&#8212;&#8211;<br \/>Country Name (2 letter code) [TW]:<br \/>State or Province Name (full name) [Yilan]:<br \/>Locality Name (eg, city) [TouCheng]:<br \/>Organization Name (eg, company) [Elementary School]:<br \/>Organizational Unit Name (eg, section) [Proxy Server]:FTP Server<br \/>Common Name (eg, your name or your server&#8217;s hostname) []:<br \/>Email Address []:<\/p>\n<p>4. \u555f\u52d5 Proftpd Serve\uff0c\u4e26\u8a2d\u5b9a\u958b\u6a5f\u6642\u555f\u52d5<br \/># systemctl start proftpd.service<br \/># systemctl enable proftpd.service<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u7db2\u7ad9\uff1aLinux \uff0e \u7121\u9650: \u5728 CentOS7\/RHEL7 \u4e0a\u67b6\u8a2d Proftpd Server 1. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2017\/09\/20\/%e5%9c%a8-centos-7-x-%e4%b8%8b%e5%ae%89%e8%a3%9d-proftpd-server\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5728 CentOS 7.x \u4e0b\u5b89\u88dd Proftpd Server\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,130,136],"tags":[],"class_list":["post-19710","post","type-post","status-publish","format-standard","hentry","category-c-78462","category-c-78475","category-c-78481"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["688210"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19710"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19710"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19710\/revisions"}],"predecessor-version":[{"id":21205,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19710\/revisions\/21205"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}