In linux, the ftp function is enabled to upload and download files from the local machine.
Source: Internet
Author: User
In linux, the ftp function is enabled to upload and download files from the local machine-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: sunny_526888
I copied it on the linux server for a long time, and I have been uploading something to myself. Now OK! Therefore, as long as the server you want to copy has enabled the ftp function, you need to upload and download files to the local machine through the command column of your computer. Remember, it is to copy the command column of your computer, but before that, you must first enable the linux ftp. Next we will introduce the linux ftp:
1. ftp must be used for file upload in linux. So I learned how to enable ftp today and record the next step.
After entering the linux system, enter the command
# Rpm-qa | grep vsftpd; find the vsftpd File
# Cd/etc; enter the etc File
# Ls vsftp *; list all files starting with vsftp
# Vi vsftpd. ftpusers; go to edit vsftpd. ftpusers
Add '#' to root and save and exit.
# Vi vsftpd. user_list; go to edit vsftpd. user_list
Add '#' to root and save and exit.
# Chkconfig vsftpd on; enable the vsftpd service
# Service vsftpd restart; restart the vsftpd service
Done.
So far, the ftp function has been activated, and now you have to go to the local machine to "run"-> cmd, enter the command Column
Remember the address, because the download will be there. ping the ip address of the server first. If yes, check whether the ip address of the ftp server is enabled, then you can get or put the file.
2. File Upload Command
Ftp 10.169.14.14 (ip address of the server to upload files); connect to the server
Put file name; Upload File
Bye; disconnect
Note:
Download command: get File Name
Sometimes an error occurs when uploading a file, such as A. SQL file. You can first execute bin, convert the encoding format, and then upload the file.
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.