NFS settings in Centos6.3 1. software packages required for NFS installation; Centos5: nfs-utils and portmap required; Centos6: nfs-utils and rpcbind required; 2. run the following command to check whether the above software package has been installed: rpm & amp; ndash; qa | grepnfsrpm... NFS settings in Centos6.3 1. software packages required for NFS installation; Centos5: nfs-utils and portmap required; Centos6: nfs-utils and rpcbind required; 2. run the following command to check whether the above software package has been installed. if rpm-qa | grep nfs rpm-qa | grep rpcbind is installed, perform step 3. if not, run the following command to install: yum install nfs-utils rpcbind 3. configure the server to create a mounted directory and use the following command: mkdir/opt /Mountdirtest cd/opt/mountdirtest mkdir test and then modify the/etc/exports file, which defines the shared directory and sharing rules; vi/etc/exports add/opt/mountdirtest 10.0.113.0/24 (rw, no_root_squash) to the file, which indicates that the nfs shared directory is/opt/mountdirtest, the IP address of 10.0.113.0/24 can be accessed. the access is read/write, and the client needs to be accessed as a root user. Save the modification and exit. then run service nfs restart to restart the nfs service; 4. disable the firewall. run the following command: service iptables stop 5. configure the operating system on the client and the server to be the same. you also need to install nfs-utls and rpcbind; check whether the nfs service showmou can be accessed after installation Nt-e 10.0.113.237: the following results indicate normal access: Export list for 10.0.113.237: /opt/mountdirtest 10.0.113.0/24 and then use the following command to create a local file associated with the server mount point mkdir/opt/mountclienttest mount-t nfs 10.0.113.237: /opt/mountdirtest // opt/mountclienttest/then run ls/opt/mountclienttest to view the files in the shared directory on the server on the client. You can also read and write files in the shared directory;
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