我的liunx学习笔记之访问网络共享文件系统
2016-10-30 21:48
441 查看
############################################\
#################访问网络共享文件系统########
#############################################
1.cifs
如何访问1
1)yum install samba-client
2)smbclient -L //ip
3)smbclient //ip/sharename
如何访问2
mount //ip/sharename /mountpoint -o username=guest
vim /etc/fstab
//ip/sharename /mountpoint cifs defaults,username=guest 0 0
mount -a
2.nfs
手动挂载方式
1)yum install nfs-utils
2)showmount -e ip
3)mount ip:/sharedir /mountpoint
自动挂载方式
1)yum install autofs
2)systemctl start autofs
3)cd /net/ip/
4)vim /etc/syscofig/autofs
TIMEOUT=5
5).自定义挂载方式
vim /etc/auto.master
最终挂载点的上层目录 自策略文件
/nfs /etc/auto.nfs
vim 自策略文件(vim /etc/auto.nfs)
最终挂载点 网络挂载资源
nfs1 172.25.254.250:/nfsshare/nfs1
* 172.25.254.250:/nfsshare/&
systemctl restart autofs
cd /nfs/nfs1
[root@westos nfs1]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 10473900 3262308 7211592 32% /
devtmpfs 927072 0 927072 0% /dev
tmpfs 942660 0 942660 0% /dev/shm
tmpfs 942660 16968 925692 2% /run
tmpfs 942660 0 942660 0% /sys/fs/cgroup
/dev/vdb1 1038336 749744 288592 73% /pub
172.25.254.250:/nfsshare/nfs1 100221952 57231360 42990592 58% /nfs/nfs1
#################访问网络共享文件系统########
#############################################
1.cifs
如何访问1
1)yum install samba-client
2)smbclient -L //ip
3)smbclient //ip/sharename
如何访问2
mount //ip/sharename /mountpoint -o username=guest
vim /etc/fstab
//ip/sharename /mountpoint cifs defaults,username=guest 0 0
mount -a
2.nfs
手动挂载方式
1)yum install nfs-utils
2)showmount -e ip
3)mount ip:/sharedir /mountpoint
自动挂载方式
1)yum install autofs
2)systemctl start autofs
3)cd /net/ip/
4)vim /etc/syscofig/autofs
TIMEOUT=5
5).自定义挂载方式
vim /etc/auto.master
最终挂载点的上层目录 自策略文件
/nfs /etc/auto.nfs
vim 自策略文件(vim /etc/auto.nfs)
最终挂载点 网络挂载资源
nfs1 172.25.254.250:/nfsshare/nfs1
* 172.25.254.250:/nfsshare/&
systemctl restart autofs
cd /nfs/nfs1
[root@westos nfs1]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 10473900 3262308 7211592 32% /
devtmpfs 927072 0 927072 0% /dev
tmpfs 942660 0 942660 0% /dev/shm
tmpfs 942660 16968 925692 2% /run
tmpfs 942660 0 942660 0% /sys/fs/cgroup
/dev/vdb1 1038336 749744 288592 73% /pub
172.25.254.250:/nfsshare/nfs1 100221952 57231360 42990592 58% /nfs/nfs1
相关文章推荐
- 我的liunx学习笔记之访问网络共享文件系统
- 我的liunx学习笔记之访问网络共享文件系统
- 我的liunx学习笔记之访问网络共享文件系统
- 我的liunx学习笔记之访问网络共享文件系统
- Linux学习笔记22 --访问网络文件共享服务
- linux初级学习之访问网络共享文件系统2-7
- linux 笔记2-7 访问网络文件系统
- Linux学习篇第二章之~unit7 访问网络文件共享服务
- ii 第七单元 访问网络共享文件系统
- 【基础部分】之访问网络共享文件系统
- Linux运维笔记-文档总结-cifs网络文件系统访问
- Linux运维笔记----访问网络文件共享服务
- Linux--RH134---unit 7 访问网络共享文件系统
- 第二本书 unit7访问网络文件共享系统
- IBM UNIX & LINUX -AIX 5L 系统管理技术 学习笔记1 -网络文件系统 NFS network file system
- Linux学习第七单元-访问网络文件共享服务
- flash如何同时访问本地文件系统和网络文件
- 如何在linux系统下挂接(mount)光盘镜像文件、移动硬盘、U盘以及Windows网络共享和UNIX
- 文件过滤系统驱动开发Filemon学习笔记
- linux系统访问Windows文件共享