Debian(Ubuntu)安装nfs
跳到导航
跳到搜索
站内参考
Nfs实现日志集中查看 这个比较新
NFS部暑 2019年的了
debian11
sudo apt install nfs-kernel-server sudo apt install nfs-common mkdir -p /data/k8s/mysql/ mkdir -p /data/k8s/discuz/db/ /data/k8s/discuz/web/ chmod -R 0777 /data/k8s/ systemctl restart nfs-kernel-server #查看可以挂载的文件(我服务端用的ip是192.168.88.122 showmount -e 192.168.88.122 Export list for 192.168.88.122: /data/k8s 192.168.88.0/24
ubuntu 18.04 server
如果你的系统是centos 请稳步 Nfs实现代码同步
nfs_ins.org sudo apt install nfs-kernel-server sudo apt install nfs-common tail /etc/exports # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) /nfsdata 192.168.88.*(rw,sync,no_root_squash) evan@k8s-master:~$ sudo mkdir /nfsdata sudo chown nobody:nogroup /nfsdata sudo systemctl restart nfs-kernel-server evan@k8s-master:~$ showmount -e Export list for k8s-master: /nfsdata 192.168.88.*
other
1、sudo apt-get install nfs-kernel-server 2、sudo vi /etc/exports 加入/home/yinxx/nfs *(rw,sync,no_subtree_check,no_root_squash) 3、sudo service nfs-kernel-server restart 4、自测是否正确sudo mount -t nfs -o nolock localhost:/home/yinxx/nfs /mnt/nfs_test/ --------------------- blog.csdn.net/weixin_38727369/article/details/83689114
see also
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04
https://www.howtoing.com/how-to-set-up-an-nfs-mount-on-ubuntu-18-04
https://blog.csdn.net/gys_20153235/article/details/80516560