How to check if NFS service is running on a Linux system?
Published on Aug. 22, 2023, 12:20 p.m.
There are several ways to check if the NFS service is running on a Linux system. Here are some possible methods:
- Use the
systemctl
command to check the status of the NFS service:
sudo systemctl status nfs
This will display the current status of the service, including whether it is active or inactive.
2. Check the output of the rpcinfo
command to see if the NFS service is registered:
rpcinfo -p | grep nfs
This will show if the nfs service is registered.
3. Check if the NFS mount points are accessible and working as expected.
4. Try to mount a remote NFS share:
sudo mount -t nfs remote_server:/remote/path /local/mount/point
If you are able to mount the NFS share, then the service is running.
Any of these methods can help determine if the NFS service is running on a Linux system.