title icon 雷射印表機資訊網
menu_top_background
:::
nfs
:::

nfs allows you to share directories and files on one machine with one or more other machines via the network they are attached to.

1.server:add to /etc/rc.conf
  portmap_enable="YES"
  nfs_server_enable="YES"
  nfs_server_flags="-u -t -n 4"
  mountd_flags="-r"
client:add to /etc/rc.conf
  nfs_client_enable="YES"
  nfs_client_flags="-n 4"

2.then create /etc/exports and add them(example)
  /cdrom -ro moe larry curly(-ro flag means Read-Only,moe、larry and curly have the same domain name)
  /home  -alldirs  10.0.0.2 10.0.0.3 10.0.0.4(-alldirs allows share to three different IP)
  /a  -maproot=0  host.domain.com box.example.com(-maproot=0 flag allows the root user on the remote system to write to the shares file system as root)

3.you can just reboot or run the follow command
server
# portmap
# nfsd -u -t -n 4
# mountd -r
client
# nfsiod -n 4

menu_bottom_background

::: copy right: 苗栗縣政府教育處資訊中心
建議使用瀏覽器Firefox或Chrome