Building an FTP server in a Linux system
First, the construction summary:
It is necessary to build an FTP server in the Linux system, this server will be able to store some software, documents, manuals and so on on this server as long as you build it successfully. Once you've set up, you can use the server directly, improving your own speed of work and some easy ways to work. Here is the concrete to build a bit. This question is oneself a person groping to build, if have what wrong place please advice. Thank you!
Second, the construction steps:
1. Start the Linux virtual machine and operate it on the command terminal.
2. Check if the FTP server is installed in the system
Command:rpm-qa | grep vsftpd
3. direct download and installation
Command:yumsearch vsftpd
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M00/A5/12/wKioL1m3c5KD1pY5AABiI1aEI0Q193.jpg "title=" 1.jpg "alt=" Wkiol1m3c5kd1py5aabii1aei0q193.jpg "/>
4. Installation
Command:yuminstall vsftpd.i686
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M02/06/62/wKiom1m3c-SASqbtAADHJ1Azar4707.jpg "title=" 2.jpg "alt=" Wkiom1m3c-sasqbtaadhj1azar4707.jpg "/>
5. Start the service
Command:servicevsftpd start
6. View Status:
Command:servicevsftpd status
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/A5/12/wKioL1m3dBPip72EAABAWM1jbVE662.jpg "title=" 3.jpg "alt=" Wkiol1m3dbpip72eaabawm1jbve662.jpg "/>
This is the installation of our FTP server is complete, below is his specific configuration.
"Specific Configuration"
1. Main configuration:
Command:/etc/vsftp/vsftpd.conf
2. specify which users cannot access the FTP server
Command:/etc/vsftpd/ftpusers
3. partially Restrict user login
command:
(1) /etc/vsftpd/vsftpd.conf Userlist_deny=yes user_list" is not accessible Ftp
( 2 /etc/vsftpd/vsftpd.conf userlist_enable=no user_list ftp
in the master configuration file, resolve:
vim/etc/vsftpd.conf Opening a configuration file
(1)# allowanonymous FTP? , allowing anonymous to log on to the FTP server.
Anonymous_enable=yes
(2)# uncommentthis to allow local users to log in. Local Users can also
Local_enable=yes
(3)# Uncommentthis to enable any form of FTP write command. allow local user write operations
Write_enable=yes
4. through IE Browser can view
Enter the Ftp://IP address to do so.
5 . Modify the Master Profile "actions for named users." "
(1), backup vsftpd.conf
Command: cpvsftpd.conf Vsftpd.conf.bak
(2), to achieve the upload operation.
(a)vimvsftpd.conf Open
(b)# allow users to upload files, note that you have to go to /var/ftp under Configure the permissions of the PUB folder to give it all the permissions to
Anon_upload_enable=yes
(c) Restart service
(3), create
(a)vimvsftpd.conf Open
(b)# Create folder
Anon_mkdir_write_enable=yes
(c) Save permission to set pub after exiting
[Email protected]]# chmod-r 777 pub/
(4),
(a) vimvsftpd.conf open
(b)# write operations and delete operations on files can be
Command: Anon_other_write_enable=yes
(c) restart
Command: servicevsftpd restart
6. Implement user authentication login
(1 ) , create a user
Useradddzxuser
Passwddzxuser
Enter the password ;
(2), set configuration file
vimvsftpd.conf Open
Set the user login to NO
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M00/A5/12/wKioL1m3dsvgA9MGAAAbc_h2heQ350.jpg "title=" 4.jpg "alt=" Wkiol1m3dsvga9mgaaabc_h2heq350.jpg "/>
(3), Make sure the two items are open
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/06/62/wKiom1m3dxfhpmGJAAAsuRwtNuo804.jpg "title=" 5.jpg "alt=" Wkiom1m3dxfhpmgjaaasurwtnuo804.jpg "/>
(4), Save Exit
Restart :servicevsftpd Restart
(5), after the browser end multiplicity the input
Ftp://Ip address after access
Enter user name and password
(6) , you can also use FZ software log in to view.
Third, concluding remarks:
Until we have the FTP server, you can download the client on the FZ website. Connect to your Linux server remotely. You can implement remote upload, download management operation of your FTP server. If there is something wrong, please leave a message, thank you!
This article from "Lonely One Night" blog, declined reprint!
Linux system to build FTP server