centos 局域网内 共享硬盘 mount

要求:将10.200.162.185:/data/www/qq_video mount 到 10.200.162.186:/data/www/qq_video

服务器1 10.200.162.185

#vim /etc/exports

/data/www/qq_video 10.200.162.0/24(insecure,rw,sync,no_root_squash)

#systemctl enable rpcbind
#systemctl start rpcbind

#systemctl enable nfs
#systemctl start nfs

服务器2 10.200.162.186

#systemctl enable rpcbind
#systemctl start rpcbind

#systemctl enable nfs
#systemctl start nfs

#mkdir -p /data/www/pp_video
#mount -t nfs 10.200.162.185:/data/www/pp_video /data/www/pp_video

#vi /etc/rc.local
mount -t nfs 10.200.162.185:/data/www/pp_video /data/www/pp_video
posted @ 2024-03-15 16:10  从雍和宫走到电影学院  阅读(51)  评论(0)    收藏  举报