Linux Disable / Remove All NFS Services

Linux Disable / Remove All NFS Services

To disable and remove all Network File System (NFS) services on a Linux system, you can follow these steps:

  1. Stop the nfs-server service by running the following command:
refe‮ot r‬:lautturi.com
sudo systemctl stop nfs-server
  1. Disable the nfs-server service from starting automatically at boot by running the following command:
sudo systemctl disable nfs-server
  1. Stop the nfs-lock service by running the following command:
sudo systemctl stop nfs-lock
  1. Disable the nfs-lock service from starting automatically at boot by running the following command:
sudo systemctl disable nfs-lock
  1. Stop the nfs-idmap service by running the following command:
sudo systemctl stop nfs-idmap
  1. Disable the nfs-idmap service from starting automatically at boot by running the following command:
sudo systemctl disable nfs-idmap
  1. Uninstall the nfs-utils package, which contains the NFS server and client utilities, by running the following command:
sudo yum erase nfs-utils

or

sudo dnf erase nfs-utils

This will remove the nfs-utils package and all NFS server and client utilities from your system.

Note: These steps will disable and remove all NFS services from your system. If you want to keep NFS client functionality but disable the NFS server, you can skip steps 1 through 6 and only uninstall the nfs-utils package. This will remove the NFS server but keep the NFS client utilities.

Created Time:2017-10-16 14:38:52  Author:lautturi