LinuxNFS server setting method (2)

Source: Internet
Author: User
LinuxNFS server setting method (2)-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Insecure allows unauthorized access from this machine.
For example, you can edit/etc/exports as follows:
The following is a code snippet:
/Tmp * (rw, no_root_squash)
/Home/public 192.168.0. * (rw) * (ro)
/Home/test192.168.0.100 (rw)
/Home/linux * .the9.com (rw, all_squash, anonuid = 40, anongid = 40)
After setting, run the following command to start the Linux NFS server:
The following is a code snippet:
/Etc/rc. d/init. d/portmap start (PORTMAP is started by default in REDHAT)
/Etc/rc. d/init. d/nfs start
Exportfs command:
If we modify/etc/exports after starting the Linux NFS server, do we have to restart nfs? At this time, we can use the exportfs command to make the change take effect immediately. The command format is as follows: exportfs [-aruv]
The following is a code snippet:
-A: All content in mount or unmount/etc/exports
-R: Re-mount the directory shared in/etc/exports
-U: umount directory
-V: in export? R wait, and output the detailed information to the screen.
Linux NFS server example:
The following is a code snippet:
[Root @ test root] # exportfs-rv <= All are re-export once!
Exporting 192.168.0.100:/home/test
Exporting 192.168.0. *:/home/public
Exporting * .the9.com:/home/linux
Exporting *:/home/public
Exporting *:/tmp
Reexporting 192.168.0.100:/home/test to kernel
Exportfs-au <= All are uninstalled.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.