NO.7 ​linux的网络共享服务

    xiaoxiao2021-03-25  105

    在linux中通过nfs协议来与其他的linux系统进行文件的共享

    1.yum install samba-client -y  安装访问网络文件的工具 2.smblient -L //172.25.254.250 查看172.25.254.250下的文件 3.访问:1>.smbclient //172.25.254.250/westos1访问westos1文件   只能是上传所在目录中的文件               2>.mount //172.25.254.250/westos1 /mnt -o username=guest通过挂载来访问网络文件 永久挂载:vim /etc/fstab    或   vim /etc/rc.d/rc.local  添加所需要的命令 4.!ls 查看可以上传的文件 指定挂载目录及修改退出挂载时间 vim /etc/autofs.conf      修改退出挂载时间 vim /etc/autofs.master /mnt  /etc/auto.mnt /mnt                               挂载点的上级目录绝对路径 /etc/auto.mnt                 子策略文件,文件名自定义 vim /etc/auto.mnt westos   172.25.254.250:/nfsshare/nsf1 westos                                            挂载点 172.25.254.250:/nfsshare/nsf1       挂载目录

    转载请注明原文地址: https://ju.6miu.com/read-21149.html

    最新回复(0)