Install and configure the FTP server in CentOS
Install vsftpd on CentOS
yum install vsftpd
Start/restart/Close the vsftpd Server
CentOS7:
Start:service vsftpd start
Stop:service vsftpd stop
Restart:service vsftpd restart
You can useservice vsftpd statusView running status
CentOS7:
Start:/bin/systemctl start vsftpd.service
Stop:/bin/systemctl stop vsftpd.service
Restart:/bin/systemctl restart vsftpd.service
You can use/bin/systemctl status vsftpd.serviceView status
Files and folders related to the vsftpd Server
The configuration file of the vsftpd server is:/etc/vsftpd/vsftpd.conf
Customize welcome information for accessing the FTP server
Set in the vsftpd. conf file:dirmessage_enable=yesAnd then enter the user directory to create.messageFile. Enter the welcome information.
Set startup
Find the/etc/rc. local file and add it in the last line:service vsftpd start, Save, exit
Configure vsftpd. conf
Anonymous_enable = NO # disable anonymous local_enable = YES # Allow Local logon write_enable = YES # Allow write. If you need to upload files, you must set local_umask = 027 # Set the File 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 Holten FTP service # Welcome information guest_enable = yes # Allow virtual user guest_username = vsftpdguest # virtual user's system account virtual_use_local_privs = YES # The virtual user has the local system permission chroot_local_user = NO chroot_list_enable = YES # the above two lines restrict virtual users to their directories, you 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 # The virtual user name is stored in the file/etc/vsftpd. user_config_dir =/etc/vsftpd/vsftpd_user_conf in chroot_list # more detailed cultivation of each virtual user name is stored in/etc/vsftpd/vsftpd_user_conf
Four Advanced configurations of vsftpd Server:
VsFTPd configuration Tutorial:
Simple and practical Ubuntu FTP setup
Set up FTP server and Apache server on Ubuntu
Install the LAMP \ vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Simple case of anonymous uploading of SeLinux and vsftpd on the RHEL6 Platform
Install vsftpd source code in Linux
Install and configure the FTP server vsftpd in openSUSE 13.2/13.1
This article permanently updates the link address: