CentOS 7 Linux system default FTP installation configuration and deployment (detailed explanation)

Source: Internet
Author: User

Niche Contact Linux system time is not long, want to solve the Linux system FTP installation and deployment problems, tossing the most of the day, and finally out, will each road
Master of the configuration method to synthesize a bit, if there is wrong, you are welcome to correct, thank you!

First, statement:

This article uses the operating system version: Centos 7 Linux system
Version Source: Centos-7-x86_64-dvd-1708.iso
Official website: Http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
Installation package Selection: Minimum installation package
The user is not, only the root user.

Second, installation vsftpd

  2.1 Detecting if the system is installed VSFTPD 
Method one:[[email protected] ~]# rpm-q vsftpd
Method two: [[email protected] ~]# vsftpd-v
 2.2 Installing the VSFTPD:
[Email protected] ~]# yum-y install vsftpd
 2.3 View VSFTPD Installation location:
[Email protected] ~]# whereis vsftpd

Third, start vsftpd

Start: [[email protected] ~]# systemctl start Vsftpd.service
Set power on start: [[email protected] ~]# systemctl enable Vsftpd.service

Iv. Configuration Files

 4.1 Configuration file/etc/vsftpd/vsftpd.conf

Anonymous_enable=no # do not allow anonymous access, disable Anonymous Logon
Chroot_local_user=yes # Enable qualified users in their home directory
Use_localtime=yes # when using local (add it yourself)
Chroot_list_enable=yes
Local_enable=yes # Allow FTP user logon verification with local accounts
Allow_writeable_chroot=yes # If you enable qualified users to add this configuration in their home directory, resolve the error OOPS:vsftpd:refusing to run with writable root inside chro OT ()
Xferlog_enable=yes # Enables the upload and download logging feature, which is turned on by default.
LOCAL_UMASK=022 # Set Local user default file mask 022
# Local file permissions on FTP, default is 077, but vsftpd installed in the configuration file by default is 022

- Note: If the VSFTPD configuration file is modified, you need to restart Vsftpd:systemctl restart Vsftpd.service

4.2 Firewall settings

Ping Linux I addresses using a DOS window
If the success will occur: FTP link successful information, generally the first configuration of the case, the system's firewall is turned on, so need to shut down the firewall or set the firewall configuration

To view the firewall status:
[Email protected] ~]# systemctl status Firewalld.service

    In general, if the external cannot link VSFTP, troubleshoot the network, it is likely that the firewall is in trouble.

To turn on the firewall:
[Email protected] ~]# systemctl start Firewalld.service
To turn off the firewall:
[Email protected] ~]# Systemctl stop Firewalld.service
To restart the firewall:
[Email protected] ~]# systemctl restart Firewalld.service
Disable boot start:
[Email protected] ~]# systemctl disable Firewalld.service
Turn on Boot:
[Email protected] ~]# Systemctl enable Firewalld.service

    Description: If you do not want to shut down the firewall, you need a firewall to add the FTP service.
Firewall-cmd--permanent--zone=public--add-service=ftp
Firewall-cmd--reload

4.3 Common FTP link issues

If you are having trouble accessing the directory list when you link to ftp:
To view the SELinux status of ftp:
[Email protected] ~]# sestatus-b | grep ftp
Change the status to On:
[[email protected] ~]# setsebool-p rftp_home_dir on (note: P is uppercase)
[email protected] ~]# setsebool-p ftpd_full_access  on (Note: P is uppercase)

CentOS 7 Linux system default FTP installation configuration and deployment (detailed explanation)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.