1. Create NFS server in Windows Server first, open the Service Manager and select Add roles;
Select File Services, next;
A hint appears, regardless of it, to proceed to the next step;
In the next page, select "Network File system service" (NFS), next;
Click Install;
The system starts to install and takes about a few minutes;
Installation complete, click Close;
This creates an NFS service in Windows Server 2008r2, then selects a partition and creates a new folder, such as NFS;
On the folder right-click Properties, you can see the list of attributes more than one NFS share;
Click Manage NFS Share, select Share this folder, the following authentication default is good;
Click "Permissions", the default shows that all computers have read-only permissions, do not allow root access, do not have to control it, select "Add";
Second, the following is the content of CentOS x64 #创建一个测试目录
Mkdir/mnt/nfs-p
#安装软件包
Yum-y Install Nfs-utils Rpcbind
Correctness of #查看一个Windows Server NFS
SHOWMOUNT-E 192.168.1.210
Export list for 192.168.1.210:
/shaohuilin (Everyone)
#手动挂载
Mount-t Nfs-o nolock 192.168.1.210:/shaohuilin/mnt/nfs
#重启后自动挂载
echo "192.168.1.210:/shaohuilin/mnt/nfs NFS defaults 0 0" >>/etc/fstab write at last: 1, after WINDOWS NFS service creation starts, Discovery Repair automatically adds a port open in the firewall, without shutting down the firewall, to implement NFS mounts in the Linux server. 2, the Port of NFS is generally 111 and 2049, reference: http://blog.csdn.net/fhqsse220/article/details/45668057 because it is not a 445 port of Samba protocol, so do not be afraid of any virus. 3, this thing can be open to all servers, in fact, there is no security problem, unlike Samba also use the user name and password to connect. Haha, than the SSH protocol that the sftp of the reliable!!!
Create an NFS server in WINDOWS2008 server and use the Linux mount command to load the network disk