Article Title: configuration of NFS server and VSFTP Server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The following uses Ubuntu10.04 as an example to record the configuration of the NFS server and VSFTP server.
I. Configuration and use of NFS servers
1 vi/etc/exports open the NFS configuration file. Copy this line in yy #/srv/homes hostname1 (rw, sync, no_subtree_check), paste it to another line, and remove the comment #, remove all spaces in front of/. Otherwise, an error occurs. The TAB space specifies the NFS working directory, and the TAB space specifies the users who can access the NFS server and the attributes of the server. Rw indicates that the working directory is readable and writable, and sync indicates that the working directory is synchronized. If you want all users to access the NFS server on the local machine, you only need to change hostname1 to *. In addition, the order of each attribute value is not limited, as long as he can be recognized by the server;
2. Run the service nfs-kernel-server start/stop/restart/reload command to start the server. The difference between reload and restart is that reload only updates the conf file and does not restart the server, the server will not be down in the middle. The restart function is to drop the server and reload the conf file.
3. Run the mount 192.168.1.1:/srv/homes/mnt command to access the NFS server.
In addition, the showmount-e IP Address can display shared files of specific IP addresses.
Ii. Configuration and use of VSFTP servers
The following describes the configuration of an anonymous ftp server, because the anonymous server is frequently used during redevelopment.
1. Considerations for vsftp. conf configuration
Listen_enable = YES
Anonymous_enable = YES
Write_enable = YES Enabled
Enabling anon_umask = 022 indicates that the default permission for the file created after anonymous logon is 755.
Anon_upload_enable = YES
Anon_mkdir_write_enable = YES
Anon_other_write_enable = YES (if not, add it by yourself), you can write data to the file.
Anon_root =/home/ftp: the added statement is used only when the vsftp working directory is/home/ftp. Note that the ftp directory permission must be 755, however, the file directory can be any permission. In addition, for the equal sign above, there cannot be spaces between it and the word before and after it, and YES must be capitalized.
2. If ftp command is used during login, the login name is anonymous, and the password is blank. If lftp is used for login, you can log on directly.