A service of Daily Data, Inc.
Contact Form

User Tools

Site Tools


unix:freebsd:system_builds:nfsserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unix:freebsd:system_builds:nfsserver [2023/01/17 20:40] – [Configure and start NFS] rodolicounix:freebsd:system_builds:nfsserver [2026/04/14 18:29] (current) rodolico
Line 8: Line 8:
  
 We also want to export to a couple of running virtuals to store large amounts of data. Since they have public interfaces, we need to set up our nfs server to only allow limited access to our nfs server, both by limiting through nfs and also with firewalls. We also want to export to a couple of running virtuals to store large amounts of data. Since they have public interfaces, we need to set up our nfs server to only allow limited access to our nfs server, both by limiting through nfs and also with firewalls.
 +
 +===== Devuan (Debian) =====
 +
 +Linux does not, by default, install an nfs server. To install (Devuan, Debian derivative)
 +
 +<code bash>
 +apt install -y nfs-kernel-server
 +</code>
 +
 +Also, the syntax for /etc/exports is slightly different for nfs v2 and 3
 +<code>
 +/srv/nfs 192.0.2.10(rw,sync,no_subtree_check,no_root_squash)
 +</code>
 +
 +And the way to start/restart nfsd is
 +
 +<code bash>
 +exportfs -ra # re-export filesystems
 +exportfs -v # view exports
 +/etc/init.d/nfs-kernel-server restart
 +</code>
 +
 +
  
 ===== Set up storage space ===== ===== Set up storage space =====
unix/freebsd/system_builds/nfsserver.1674009633.txt.gz · Last modified: by rodolico