要在CentOS上安裝和配置NFS服務(wù)器,您可以按照以下步驟進(jìn)行操作:
sudo yum install nfs-utils
sudo systemctl enable nfs-server
sudo systemctl start nfs-server
sudo mkdir -p /mnt/nfs_share
/mnt/nfs_share 192.168.1.100(rw,sync,no_root_squash)
sudo exportfs -a
sudo systemctl reload nfs-server
sudo mount -t nfs 192.168.1.100:/mnt/nfs_share /mnt/mount_point
df -h
現(xiàn)在您已經(jīng)成功在CentOS上安裝和配置了NFS服務(wù)器,可以通過網(wǎng)絡(luò)共享目錄/mnt/nfs_share。