美文网首页
ipv6 nfs挂载

ipv6 nfs挂载

作者: denghuo7743 | 来源:发表于2020-07-14 18:01 被阅读0次
    #### 配置NFS服务端
    
    #### 服务端:2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx
    
    #### 客户端:2604:xxxx:xxx:xxx::xxx
    

    服务端安装

    sudo su
    
    安装NFS:
    $ sudo yum install nfs-utils
    
    sudo mkdir /www/wwwroot/tu
    sudo chmod 777 /www/wwwroot/tu
    
    sudo vi /etc/exports
    
    /www/wwwroot/tu    2604:xxxx:xxx:xxx::xxx (insecure,rw,sync,no_root_squash,no_all_squash)
    
    exportfs -rv
    
    $sudo systemctl enable rpcbind
    
    $sudo systemctl start rpcbind
    
    $sudo systemctl enable nfs-server
    
    $sudo systemctl start nfs-server
    
    sudo systemctl restart nfs
    
    showmount -e localhost
    
    $ sudo firewall-cmd --zone=public --permanent --add-service={rpc-bind,mountd,nfs}
    $ sudo firewall-cmd --reload
    

    客户端安装

    sudo su
    
    sudo yum install nfs-utils
    
    sudo systemctl enable rpcbind
    sudo systemctl start rpcbind
    
    sudo mkdir /www/wwwroot/tu
    
    sudo chmod 777 /www/wwwroot/tu
    
    sudo mount -t nfs [2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx]:/www/wwwroot/tu /www/wwwroot/tu
    
    mount
    
    sudo vi /etc/fstab
    
    #
    # /etc/fstab
    # Created by anaconda on Thu May 25 13:11:52 2017
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    /dev/mapper/cl-root     /                       xfs     defaults        0 0
    UUID=414ee961-c1cb-4715-b321-241dbe2e9a32 /boot                   xfs     defaults        0 0
    /dev/mapper/cl-home     /home                   xfs     defaults        0 0
    /dev/mapper/cl-swap     swap                    swap    defaults        0 0
    [2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx]:/www/wwwroot/tu    /www/wwwroot/tu                nfs         defaults     0 0
    
    sudo systemctl daemon-reload
    

    相关文章

      网友评论

          本文标题:ipv6 nfs挂载

          本文链接:https://www.haomeiwen.com/subject/khvfhktx.html