ip a show
showmount
mount
dnf install nfs-utils
mkdir -p /mnt/nfs_share
showmount -e 192.168.1.100
mount -t nfs 192.168.1.100:/export/share /mnt/nfs_share
vi /etc/fstab
/etc/fstab
192.168.1.100:/export/share /mnt/nfs_share nfs defaults,_netdev 0 0
mount -a
umount /mnt/nfs_share
mount -a
# 如果有掛載storage setsebool -P httpd_use_nfs on chcon -R -t httpd_sys_rw_content_t <file_dir>
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up