zoukankan      html  css  js  c++  java
  • Ubuntu下配置Window CIFS共享

    转自:https://blog.csdn.net/wanfengzhong/article/details/52550074


    1. 准备windows共享文件夹
    2. 安装 cifs-utils
    sudo apt-get install cifs-utils
    注意比较旧的系统使用smbfs
    sudo apt-get install smbfs
    3. 执行命令mount实现cifs
    sudo mount -t cifs -o username=登录windows共享文件夹用户名,password=登录windows共享文件夹密码 //windows共享主机IP地址/windows共享文件夹名称 /Ubuntu下的一个目录
    eg:sudo mount -t cifs  //10.11.12.13/d/data/   /opt/option/remote/  -o username=administrator,password=1234567890,ro  (或者rw)
    4. 如果希望重启系统的时候自动mount, 可以将下面命令行添加到/etc/fstab里面
    //windows共享主机IP地址/windows共享文件夹名称 /Ubuntu下的一个目录 cifs defaults,username=登录windows共享文件夹用户名,password=登录windows共享文件夹密码 0 2
    添加完成后执行: sudo mount | grep remote如果能看到的话代表成功.
    不用了就 sudo umount /opt/option/remote/
  • 相关阅读:
    无锁编程(五)
    Linux Kernel CMPXCHG函数分析
    无锁编程(四)
    无锁编程(三)
    无锁编程(二)
    无锁编程(一)
    无锁编程
    Linux同步机制
    Linux同步机制
    bootstrap css编码规范
  • 原文地址:https://www.cnblogs.com/xiaouisme/p/11554911.html
Copyright © 2011-2022 走看看