1, install the FTP service, you can directly yum install VSFTPD.
2, set the random start, Chkconfig vsftpd on.
3, start the FTP service vsftpd start.
4, configure Nginx static resource redirection.
Let's say we store a static resource file in our custom directory/usr/local/app/yidoo/ebs-k3c/file/, and we want the request to be forwarded to/usr/local/app/yidoo/when we access www.domain.com/file/*. ebs-k3c/file/, this time Nginx can be configured as follows:
location/file/{ root /; Rewrite ^/file/(. *) $/usr/local/app/yidoo/ebs-k3c/file/$1 break; }
Accessing Www.domain.com/file/abc.txt at this point accesses the/usr/local/app/yidoo/ebs-k3c/file/abc.txt and returns it to the client, which is 404 if it does not exist.
See also FTP Server Setup under CentOS (and how to troubleshoot startup failures)
See Nginx location for details, original essence notes
Configure Nginx under Linux to use the FTP directory as the target directory for static resource files