Aliyun Linux Server Configuration

Source: Internet
Author: User
In Linux, the FTP configuration (RedHat) Linux cloud host has already installed the FTP server named vsftp by default, and is not started by default.

1. Start the vsftp Server

A. After logging on to the Linux host, run the command: "service vsftpd start"

B. Run the command "chkconfig -- level 35 vsftpd on" to enable ftp to automatically start upon startup"


2. Set FTP Permissions

A. Edit the vsftp configuration file and run the command: "VI/etc/vsftpd. conf"

B. Change "anonymous_enable = yes" in the configuration file to "anonymous_enable = No"

C. Save the changes, Press ESC, and run the command: ": WQ"

In this way, the anonymous logon function is disabled.


3. Add an FTP account

A. After logging on to the Linux host, run the command: "useradd ftpadmin-S/sbin/nologin". By default, this account path points to the/home/ftpadmin directory. If you want to direct the user to another directory, run the command: useradd ftpadmin-S/sbin/nologin-D/WWW (other directories)

B. Set the ftpadmin user password and run the command "passwd ftpadmin". Enter the password twice. After the password is matched, The ftpadmin user password is set.

C. Test the connection. You can enterFTP: // ipTo connect to the FTP server. Enter the account password as prompted.


4. FTP data transmission considerations

A. Try to package the file and upload it. Linux cannot recognize RAR compressed packages. You can use zip compression.

B. Select binary encoding when uploading data. If other encoding is selected, the uploaded compressed file may not be opened.

 

 

Delete the RM-RF dirname directory

Copy directory CP-r dir1 dir2

 

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.