Use nfs for file sharing in linux-Linux Enterprise Application-Linux server application information. For more information, see the following section. Shared between linux systems. smb and nfs can be used.
Smb is used by default in rf 5. You can use the right-click Sharing option similar to $ ms, and enter smb: // server-ip/share-dir in the client's firefox address bar to browse.
Nfs:
Server:
1) edit the/etc/exports file and add the file or directory to be shared. The format is as follows:
Directory host name 1 or IP1 (parameter 1, parameter 2) host name 2 or IP2 (parameter 3, parameter 4)
For example:
/Home/maple/kk_data * (ro, sync)
Ro means read only, and sync doesn't quite understand yet. Check it and it means to write data to the memory synchronously. The parameter also has rw and async (the data will be temporarily stored in the memory and will not be directly written to the hard disk ).
2) Start the nfs service:
# Service nfs start
An error is reported:
Disable NFS quota: unable to register service: RPC: unable to receive; errno = Connection denied
Rpc. rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp ).
Start the portmap service.
# Service portmap start
Then start the nfs service.
Client:
1) Start the portmap service
2) mount to a local directory
Mount server-ip:/home/maple/kk_data/mnt/share
OK. You can access the shared data in the/mnt/share/directory.
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