ubuntu挂载网络共享文件夹

1、ubuntu挂载ubuntu网络共享文件夹
假设ubuntu机器A访问ubuntu机器B(192.168.1.1)
1)机器A安装
安装共享服务器
sudo apt-get install nfs-kernel-server;

配置
sudo gedit /etc/exports
增加一行记录
/home/share    *(rw,sync,no_subtree_check)

重启服务
sudo /etc/init.d/nfs-kernel-server restart

2)机器B安装
安装共享客户端
sudo apt-get install nfs-common;
挂载机器A目录/home/share 到机器B/mnt
sudo mount -t nfs 192.168.1.1:/home/share /mnt

2、ubuntu挂载windows网络共享文件夹
假设ubuntu机器A访问windows机器B(192.168.1.1)
1)机器A安装
sudo apt-get install smbfs;

使用smbmount挂载
sudo smbmount //192.168.1.1/d$/ /mnt -o iocharset=utf8,uid=root,gid=root,username=pcbusername;

卸载命令
sudo umount /mnt/;

原创文章,转载请注明: 转载自海波无痕

本文链接地址: ubuntu挂载网络共享文件夹

文章的脚注信息由WordPress的wp-posturl插件自动生成

Related posts:

  1. ubuntu安装apache2/php/mysql
  2. ubuntu安装nginx服务器
  3. ubuntu安装vsftpd服务器
This entry was posted in server and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

评论链接可以 移除 nofollow.