Ubuntu 65279 first install nfs-kernel-server [plain] & amp; #65279; & amp; #65279; & amp; #65279; & amp; apt-getinstallnfs-kernel-server and then create a directory: [plain] mkdir-p/opt/sha
To install NFS server in Ubuntu 12.04, first install nfs-kernel-server [plain] kernel apt-get install nfs-kernel-server and then create a directory: [plain] mkdir-p/opt/share and grant the permission 777: [plain] chmod-R 777/opt/share www.2cto.com add the configuration in the/etc/exports file: [plain]/opt/share 10.112.18.0/255.255.255.0 (rw, no_root_squash) at/etc/hosts. add configuration in allow: [plain] portmap: 10.112.18.0/255.255.255.0 in/etc/hosts. add configuration in deny: [plain] portmap: ALL restart two services: [plain] service Portmap restart service nfs-kernel-server restart install nfs-common [plain] apt-get install nfs-common www.2cto.com on another Ubuntu server and create the test [plain] mkdir ~ directory ~ /Test and run the test command to check whether [plain] # showmount-e 10.112.18.158 Export list for 10.112.18.158:/opt/share 10.112.18.0/255.255.255.0 finds the nfs server Mount directory. Now manually mount: [plain] mount-t nfs4 10.112.18.158:/opt/share ~ /Test/Now you can test it. it should be successful.
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