Host |
Operating system |
IP Address |
Package |
nfs host |
centos7.2 |
192.168.190.128 |
nfs-utils, Rpcbind |
windows Client |
windows server, |
192.168.190.129 |
Network File system |
Note: The following experiments all shut down firewalls and other security mechanisms
650) this.width=650, "title=" Metal textured split Line "src=" https://mmbiz.qpic.cn/mmbiz/ Czv2hrpuapjeiibb1uyw1vmpzscnxrekzvxeh23qb9kgpqfq3uoyby3m93pcfounrvjkyvrtfvxmworbbuwaz4a/0?tp=webp&wxfrom=5 &wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 0?tp=webp&wxfrom=5&wx_lazy=1 "/>
NFS Host Operations
# Install Nfs-utils and management tools using Yum Rpcbind
[Email protected] ~]# yum-y install Nfs-utilsrpcbind
# Create a shared folder
[Email protected] ~]# Mkdir/nfs
[Email protected] ~]# Vim/etc/exports
# NFS is a shared directory name, * refers to all hosts, RW refers to read and write permissions, if required read-only can be changed to RO
/NFS * (rw)
# Note: Set access permissions for files that need to be shared, because NFS will default to all access users to nobody users, but the user we just created does not have access to the files that need to be shared, which is set to full access, If you need to use the network again, you need to set the permissions to be available for use in the production environment.
[Email protected] ~]# chmod 777/nfs
[Email protected] ~]# systemctl start Nfs.service
[Email protected] ~]# Systemctl Startrpcbind.service
650) this.width=650, "title=" Metal textured split Line "src=" https://mmbiz.qpic.cn/mmbiz/ Czv2hrpuapjeiibb1uyw1vmpzscnxrekzvxeh23qb9kgpqfq3uoyby3m93pcfounrvjkyvrtfvxmworbbuwaz4a/0?tp=webp&wxfrom=5 &wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 0?tp=webp&wxfrom=5&wx_lazy=1 "/>
Windows Server R2 Operations
OpenControl Panel"→ Click"role"→ Click"Add a role"→ Click"Next Step"→ Click"File Services"→ Click"Next Step"→ Click"next piece of cloth"→ Select"Network File System Services"→ Click"Next Step"→ Click"installation"As shown in:
650) this.width=650; "Src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscbp6vrbj1uuc6kxjznx0gicnupugjsi6nf1b2nbewg84gbwdoxtprmcq/640?wx_fmt=png&tp= Webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy= "/>
650) this.width=650; "title=" "border=" 0 "src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lsctue3r05fqc2bovibyrw79ic1syintubm7qiddbxut639iojfhp4ldlba/640?wx_fmt=png&tp =webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:582px; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
650) this.width=650; "Src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscyo99umcpzoiavgeevnj8kpiaj4cmplo7aoicyewwlvgnkgvomquic9noag/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
After the installation is complete, you need to type "Win + R" key to open cmd
650) this.width=650; "Src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscxclf8b4rnu3hsgmpiapzevwelxnc0oz5ldgziahwotaicbezr6bfyestg/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
# Note: 192.168.190.128 is the address of the NFS server,/NFS is the shared directory of the server, X is the mount point of NFS in Windows
Input:mount 192.168.190.128:/nfs X:
650) this.width=650; "title=" "border=" 0 "src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscdaesnyqky4ibaibiciatnheln1zchngdjwydvf9cwoxzlkyha7eloszd1a/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:582px; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
Open Computer discovery has been mounted successfully
650) this.width=650; "title=" "border=" 0 "src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscgtsya5kyayyzkpyfiicicn1h18y4jr6qyhjqnp0b1qx1rpyzjof2lrmq/640?wx_fmt=png&tp =webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:582px; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
To boot automatically mount you can click on " computer " → Click " Map Network drive " → " input network share file path " → " complete "
650) this.width=650; "title=" "border=" 0 "src=" https://mmbiz.qpic.cn/mmbiz_png/ 3zoyydjjr11hncl2ndiforzdphib4lscpezftp1cmfsxec9snwfqylwk3sst31mrhtsfwqxia8lq6uv97aiabqtw/640?wx_fmt=png&tp =webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:582px; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
Shared file z is still mounted after reboot
This article is from the "Little Rookie" blog, please be sure to keep this source http://baishuchao.blog.51cto.com/12918589/1929982
Windows Mount NFS File system