Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a shared directory in linux

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to create a shared directory in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Install rpm:

Both are installed:

Yum-y install nfs-utils rpcbind

Host ap1

/ etc/exports add:

/ concnfs/ebsconc 10.10.10.86Compact 24 (rw,sync,no_root_squash,no_all_squash)

[root@jt-ebsapp01 etc] # exportfs-r

[root@jt-ebsapp01 etc] # service rpcbind start

[root@jt-ebsapp01 etc] # service nfs restart

[root@jt-ebsapp01 etc] # chkconfig nfs on

Host AP2

[root@jt-ebsapp02] # showmount-e 10.10.10.85

Export list for 10.10.10.85:

/ concnfs/ebsconc 10.10.10.86/24

/ oraerpapp/nfs 10.10.10.amp 24 (rw,sync,no_root_squash,no_all_squash)

Lower

View the shared directory information thrown by the server

[root@bogon] # showmount-e 192.168.2.203

Export list for 192.168.2.203:

/ data/lys 192.168.2.0/24

In order to improve the stability of NFS, TCP protocol is used to mount NFS, and UDP protocol is used by default for NFS.

[root@bogon] # mount-t nfs 192.168.2.203:/data/lys / lys-o proto=tcp-o nolock

The above is all the contents of the article "how to create shared directories in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report