Troubleshooting Installation:
1. Check if the system is on NFS Service: Service NFS Status Results display nfs:unrecognized service, stating that the system does not have NFS services installed, so installed;
Note that Yum install NFS is not installable and should be installed with Yum install Nfs-utils.
2, open Portmap Services, or unrecognized service, installation, yum install Portmap, Baidu +google, found that CentOS 6.4 Portmap has been replaced by Rpcbind, So continue to install, did not, check is not already installed in the Nfs-utils package when installed, service Rpcbind status, sure enough has been installed.
The above is the entire installation process, the summary is the CentOS 6.x system after a command yum install nfs-utils all done, Looks like the 5.x version can also be done with this command, can not make it possible to install Portmap, the main 6.x version of the thing Rpcbind, 5.x version with the Portmap.
Here is the startup process:
1. Configure the/etc/exports file first
Vi/etc/exports;
Then enter/home/share:192.168.1.* (Rw,sync,no_root_squash,no_all_squash)
Save exit
2. Start Rpcbind service rpcbind Start (note)
3. Start NFS Service Services NFS Start
SHOWMOUNT-E 192.168.1.150 outputs the following results:
Export list for 192.168.1.150:
/home/data/share 192.168.1.*
Description Successful start (note: After the CentOS 6.x version showmount-e must specify the IP, otherwise it will be stuck there, there is no output, 5.x version can not be specified)
The following is the directory that mounts NFS to the specified machine
SSH login to another machine b:ssh [email protected]
Mount-t NFS 192.168.1.150:/home/share/var/www/html
Set up the file Test.txt on the a machine, and then found that the B machine has the same file, the NFS server and the client are in sync.
1. See if VSFTP is installed
Rpm-qa | grep vsftpd
If Vsftpd-2.0.5-21.el5 appears, the VSFTP is installed and if not , you need toto install VSFTP, the command is as follows:
Yum-y Install VSFTPD
2. Test whether the installation is successful
[[Email protected] ~] #service vsftpd Start
3, configuration vsftpd# Whereis VSFTPDvsftpd:/usr/sbin/vsftpd/etc/vsftpd/usr/share/man/man8/vsftpd.8.gzYum installs the main directory for the above 3 directories, where the configuration file vsftpd.conf in/etc/vsftpd, see below How to configure vsftpd.conf# Default profile:/etc/vsftpd.conf# Here are the options and instructions for configuring######### Core Settings ############ Allow local users to log onLocal_enable=yes# Write permissions for Local UsersWrite_enable=yes# Local file permissions using FTP, default to 077# generally set to 022local_umask=022# when switching directories# Whether to display the contents of the. Message in the directoryDirmessage_enable=yesdirlist_enable = NO#验证方式#pam_service_name =vsftpd# Enable Data connections for FTP data portsConnect_from_port_20=yes# Run as a standalone FTP serviceListen=yes# Modify the connection port#listen_port =2121######### Anonymous Login settings ############ Allow Anonymous LogonAnonymous_enable=no# If Anonymous Logon is allowed# Whether to turn on anonymous upload permission#anon_upload_enable =yes# If Anonymous Logon is allowed# Whether to allow anonymous folder creation and upload files within folders#anon_mkdir_write_enable =yes# If Anonymous Logon is allowed# Anonymous accounts can have delete permissions#anon_other_write_enable =yes# If Anonymous Logon is allowed# anonymous Download Permissions# Anonymous for other, can set directory/File attribute control#anon_world_readable_only =no# If Anonymous Logon is allowed# Limit Anonymous user transfer rate, Unit bite#anon_max_rate =30000######### user throttling settings ############ # # Limit Login# Use UserList to restrict user access#userlist_enable =yes# People in the list are not allowed to visit#userlist_deny =no # Limit the path to the list file placement#userlist_file =/etc/vsftpd/userlist_deny.chroot# # # Limit Directory# Restrict all users to the home directory#chroot_local_user =yes# Call a list of users who restrict home directoriesChroot_list_enable=yes# Limit the path to the list of users in your home directorychroot_list_file=/etc/vsftpd/chroot_list######### Log Settings ############ Log file path settingsXferlog_file=/var/log/vsftpd.log# Activate the upload/download logXferlog_enable=yes# Use the standard log format#xferlog_std_format =yes######### security Settings ############ User Idle timeout, per second#idle_session_timeout =600# Data Connection idle timeout, per second#data_connection_timeout =120# Disconnect the client after 1 minutes of idle#accept_timeout =60# Reconnect after 1 minutes of interruption#connect_timeout =60# Local User transfer rate, Unit bite#local_max_rate =50000 # Maximum number of connections for FTP#max_clients =200# Maximum number of connections per IP#max_per_ip =5######### Passive mode setting ############ Whether to open a passive modePasv_enable=yes# Passive mode min Portpasv_min_port=5000# Passive Mode maximum portpasv_max_port=6000######### Other Settings ############ Welcome Informationftpd_banner=welcome to FTP server!4 Add an FTP firewall rule:/sbin/iptables-i input-p tcp--dport 21-j ACCEPT/etc/rc.d/init.d/iptables Save/etc/init.d/iptables Restart5 Add Users (note that the Nologin type user Ftpuser is added here):useradd-d/home/ftp-s/sbin/nologin ftpuserIf VSFTPD is started, restartpkill vsftpd/usr/sbin/vsftpd &6 to this, the entire small FTP server was built successfully. You can log in to FTP server using client software such as FileZilla FTP or FLASHFXP.
Linux Learning NFS Installation configuration