Install the FTP server and configuration in Centos, and use the centosftp Server
Install
yum install vsftpd
Start/restart/close
/sbin/service vsftpd start/sbin/service vsftpd restart/sbin/service vsftpd stop
Configuration File
/etc/vsftpd/vsftpd.conf
Upload and download anonymously
Modify the configuration file to vsftpd. conf.
anonymous_enable=yesanon_upload_enable=yesanon_mkdir_write_enable=yesanon_umask=022
Configure vsftpd. conf
Anonymous_enable = NO # disable anonymous local_enable = YES # Allow Local logon write_enable = YES # Allow write. to upload a file, you must use llocal_umask = 027 # Set the upload permission: authorization = YES # Allow virtual users and anonymous users to upload images = YES # Allow virtual users and anonymous users to modify file names and delete files dirmessage_enable = YES xferlog_enable = YES # Open the log record connect_from_port_20 = YESxferlog_file = /var/log/vsftpd. log # log storage location xferlog_std_format = YES # standard log format timeout = 600 # idle connection timeout data_connection_timeout = 120ftpd_banner = Welcome to ChinaRise FTP service # Welcome information chroot_local_user = NO timeout = YES # the above two limit the number of virtual users in their directories, cannot access other directories, or use chroot_local_user = YES listen = yes # listener/Passive mode listen_port = 21 # listener Port
Chroot_list_file =/etc/vsftpd. chroot_list # Save the virtual user name list in the file/etc/vsftpd. chroot_list
User_config_dir =/etc/vsftpd/vsftpd_user_conf # more detailed cultivation of each virtual user name is stored in/etc/vsftpd/vsftpd_user_conf
I am the dividing line of tiantiao