“Debian(Ubuntu)安装nfs”的版本间的差异
跳到导航
跳到搜索
第5行: | 第5行: | ||
mkdir -p /data/k8s/mysql/ | mkdir -p /data/k8s/mysql/ | ||
+ | mkdir -p /data/k8s/discuz/db/ /data/k8s/discuz/web/ | ||
+ | |||
</pre> | </pre> | ||
2021年8月30日 (一) 05:01的版本
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/
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.howtoing.com/how-to-set-up-an-nfs-mount-on-ubuntu-18-04