nfsd is invoked by launchd while booting by the accompanying com.apple.nfsd.plist file in /System/Library/LaunchDaemons/.
it's only kept alive, when /etc/exports exists. If the path doesn't exist, nfsd will not run.
So removing /etc/exports will disable nfsd temporarily until the path is recreated
or executing
launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist
installation on OSX prevents OSX to sleep because of use of nfsd
it adds the following line in /etc/exports
nfsd is invoked by launchd while booting by the accompanying com.apple.nfsd.plist file in /System/Library/LaunchDaemons/. it's only kept alive, when /etc/exports exists. If the path doesn't exist, nfsd will not run.
So removing /etc/exports will disable nfsd temporarily until the path is recreated or executing launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist