Build an Ftp environment in linux

Source: Internet
Author: User
Linux Ftp environment setup 1. ftp software installation using ssh remote connection to the linux system, uploading and downloading some files, Ftp is an indispensable Ftp installation is very simple, after logging on to the system remotely, run the command yumlistvsftpd to check that vsftpd is not installed... linux Ftp environment setup 1. ftp software installation using ssh remote connection to the linux system, uploading and downloading some files, Ftp is an indispensable Ftp installation is very simple, after logging on to the system remotely, run the command yum list vsftpd to check whether vsftpd is not installed. then run the command yum-y install vsftpd to automatically install the ftp software. 2. the Ftp configuration file is/etc/vsftpd. conf. use the vim/etc/vsftpd. conf command to edit the configuration file and make the following changes.
Anonymous_enable = NO is modified. the default value is YES. If this parameter is set to NO, anonymous user logon is prohibited. Save and exit the editor. 3. set an Ftp account. Use the useradd command to add a new user as an FTP user, and use the command useradd ftpuser # Create a user named ftpuser Passwd ftpuser # Create a login password for the user ftpuser, enter the same password twice. ftpuser's FTP directory is in/home/ftpuser.
4. start ftp and use service vsftpd start to start ftp services. stop and restart are the stop and restart commands. 5. in this way, a basic ftp server is built, you can use the created account ftptest and password to log on to the system through ftp for data transmission. If you need more features, you need to refer to the configuration file for detailed settings. note: Because SElinux is automatically started when the VM instance is started, ftp software can be connected but files cannot be uploaded. selinux needs to be set, or temporarily disable selinux. We recommend that you disable linux before you get started. In this case, if you use the/usr/sbin/setenforce 0 command, SELINUX will be immediately disabled. The/usr/sbin/setenforce 1 Command enables SELINUX immediately.

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.