xref: /original-bsd/sbin/nfsd/nfsd.8 (revision 27393bdf)
1.\" Copyright (c) 1989, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)nfsd.8	8.4 (Berkeley) 03/29/95
7.\"
8.Dd
9.Dt NFSD 8
10.Os
11.Sh NAME
12.Nm nfsd
13.Nd remote
14.Tn NFS
15server
16.Sh SYNOPSIS
17.Nm nfsd
18.Op Fl rut
19.Op Fl n Ar num_servers
20.Sh DESCRIPTION
21.Nm Nfsd
22runs on a server machine to service
23.Tn NFS
24requests from client machines.
25At least one
26.Nm nfsd
27must be running for a machine to operate as a server.
28.Pp
29Unless otherwise specified, four servers for
30.Tn UDP
31transport are started.
32.Pp
33The following options are available:
34.Bl -tag -width Ds
35.It Fl r
36Register the
37.Tn NFS
38service with
39.Xr portmap 8
40without creating any servers.
41This option can be used along with the
42.Fl u
43or
44.Fl t
45options to re-register NFS if the portmap server is restarted.
46.It Fl n
47Specifies how many servers to create.
48.It Fl t
49Serve
50.Tn TCP NFS
51clients.
52.It Fl u
53Serve
54.Tn UDP NFS
55clients.
56.El
57.Pp
58For example,
59.Dq Li "nfsd -u -t 6"
60serves
61.Tn UDP
62and
63.Tn TCP
64transports using six daemons.
65.Pp
66A server should run enough daemons to handle
67the maximum level of concurrency from its clients,
68typically four to six.
69.Pp
70.Nm Nfsd
71listens for service requests at the port indicated in the
72.Tn NFS
73server specification; see
74.%T "Network File System Protocol Specification" ,
75RFC1094 and
76.%T "NFS: Network File System Version 3 Protocol Specification" .
77.Pp
78The
79.Nm nfsd
80utility exits 0 on success, and >0 if an error occurs.
81.Sh SEE ALSO
82.Xr nfsstat 1 ,
83.Xr nfssvc 2 ,
84.Xr mountd 8 ,
85.Xr portmap 8
86.Sh HISTORY
87The
88.Nm nfsd
89utility first appeared in 4.4BSD.
90