Linux Learning 134 Unit 7

Source: Internet
Author: User

UNIT7 accessing the network shared file system


1.cifs

How to access 1

1) Yum Install Samba-client

2) Smbclient-l//IP

3) Smbclient//ip/sharename

How to access 2

Mount//ip/sharename/mountpoint-o Username=guest

Vim/etc/fstab

//ip/sharename/mountpoint CIFS defaults,username=guest 0 0

Mount-a

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/93/4E/wKioL1kJ9huhnfIDAABQ4_J7_kc995.jpg "style=" float : none; "title=" 36020170503232303985.jpg "alt=" Wkiol1kj9huhnfidaabq4_j7_kc995.jpg "/>

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/93/4E/wKioL1kJ9hzBHfKzAAAIrK1c0Mk650.jpg "style=" float : none; "title=" 36020170503232318410.jpg "alt=" Wkiol1kj9hzbhfkzaaairk1c0mk650.jpg "/>

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/93/50/wKiom1kJ9hzjngVcAACWZnT9EYw758.jpg "style=" float : none; "title=" 36020170503232339293.jpg "alt=" Wkiom1kj9hzjngvcaacwznt9eyw758.jpg "/>

650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/93/50/wKiom1kJ9lmBr8DDAAAGMVmOFDM655.jpg "style=" float : none; "title=" 36020170503232429176.jpg "alt=" Wkiom1kj9lmbr8ddaaagmvmofdm655.jpg "/>

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M02/93/4E/wKioL1kJ9lrAIhyaAABlIw69kQo612.jpg "style=" float : none; "title=" 36020170503232500143.jpg "alt=" Wkiol1kj9lraihyaaabliw69kqo612.jpg "/>


2.nfs

Manual Mount Mode

1) Yum Install Nfs-utils

2) Showmount-e IP

3) Mount Ip:/sharedir/mountpoint

Auto Mount Mode

1) Yum Install AutoFS

2) systemctl start AutoFS

3) cd/net/ip/

4) Vim/etc/syscofig/autofs

Timeout=5

5). Custom Mount Mode

Vim/etc/auto.master

Upper directory of the final mount point Self-policy files

/nfs /etc/auto.nfs

Vim Self-policy file (VIM/ETC/AUTO.NFS)

Final mount point Network Mount Resources

NFS1 172.25.254.250:/NFSSHARE/NFS1

* 172.25.254.250:/nfsshare/&


Systemctl Restart AutoFS

Cd/nfs/nfs1

[[email protected] 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



Linux Learning 134 Unit 7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.