zoukankan      html  css  js  c++  java
  • Windows2008下搭建NFS实现windows空间提供linux使用

    我们既然是要把Windows 的硬盘给Linux使用  就需要在Windows上安装NFS网络文件系统 操作如下
    1.添加角色-----文件服务---勾选网络文件服务





    2.安装完成后 我们需要把这30G空间给Linux用


    创建一个文件夹  然后点击管理NFS共享  共享使用默认

    添加IP


    为客户端IP

    然后登录Linux挂载

    首先创建一个挂载点

    挂载


    设置开机挂载
    vi /etc/fatab


    [root@htuidc /]# vi /etc/rc.local 

    设置完之后重启就可以了


    Linux mount挂载常见问题
    mount: wrong fs type, bad option, bad superblock on 125.64.41.244:/data/img,
           missing codepage or helper program, or other error
           (for several filesystems (e.g. nfs, cifs) you might
           need a /sbin/mount.<type> helper program)
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
     
    解决办法:
    Linux没有安装nfs-utils  
    [root@htuidc /]# yum -y install nfs-untils

    2.遇到这个问题是没开启rpcbind服务
    # mount 42.51.153.157:/nfs /mnt
    mount.nfs: rpc.statd is not running but is required for remote locking.
    mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
    mount.nfs: an incorrect mount option was specified

    解决办法:client:
    # /etc/init.d/rpcbind start

     






  • 相关阅读:
    Vue之数据排序加签
    微信小程序之评分页面
    Vue之展示PDF格式的文档
    动态规划问题思考(DP)
    LitJson的使用
    c#事件管理器
    unity shader 学习
    unity ugui图片自适应文字内容大小
    unity3d各种OpenFileDialog操作
    ue4 使用3dsmax制作布料的插件及下载位置
  • 原文地址:https://www.cnblogs.com/yangxiaofei/p/4996731.html
Copyright © 2011-2022 走看看