“Debian(Ubuntu)安装nfs”的版本间的差异
跳到导航
跳到搜索
(未显示同一用户的8个中间版本) | |||
第1行: | 第1行: | ||
+ | |||
+ | =站内参考= | ||
+ | [[Nfs实现日志集中查看]] 这个比较新 | ||
+ | |||
+ | [[NFS部暑]] 2019年的了 | ||
+ | |||
=debian11= | =debian11= | ||
<pre> | <pre> | ||
第5行: | 第11行: | ||
mkdir -p /data/k8s/mysql/ | 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 | ||
+ | |||
+ | |||
</pre> | </pre> | ||
+ | [https://www.liaoxuefeng.com/article/895917095909152 Debian Linux安装NFS] | ||
=ubuntu 18.04 server= | =ubuntu 18.04 server= | ||
第44行: | 第62行: | ||
</pre> | </pre> | ||
=see also= | =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://www.howtoing.com/how-to-set-up-an-nfs-mount-on-ubuntu-18-04 | ||
第49行: | 第69行: | ||
[https://blog.51cto.com/13109742/2061511 NFS介绍、NFS服务端配置安装配置、 NFS配置选项、 客户端的配置] | [https://blog.51cto.com/13109742/2061511 NFS介绍、NFS服务端配置安装配置、 NFS配置选项、 客户端的配置] | ||
+ | |||
+ | |||
+ | [https://blog.csdn.net/weixin_45784720/article/details/109107062 debian10 nfs简单搭建] | ||
+ | |||
+ | [https://blog.csdn.net/allway2/article/details/107546648 如何在Debian 10 Buster上设置NFS服务器] | ||
+ | |||
+ | [https://www.helplib.cn/%E6%9D%A8%E5%92%8C%E8%B6%85/how-to-set-up-a-nfs-server-on-debian-10-buster 在Debian 10上,如何设置NFS服务器] | ||
[[category:ops]] | [[category:ops]] |
2024年10月5日 (六) 11:42的最新版本
站内参考
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