一. Linux 与Linux 之间的通信之NFS:
S1: 安装NFS,配置NFS文件:
打开终端:vim /etc/exports ;
输入:/opt *( rw, sync, no-root-squash )
↓ ↓ ↓
① ② ③
①:可访问的目录(共享目录);
②:Tab键;
③:*:无限制ip访问地址; rw:可读写权限;sync:同步;no-root-squash:以root身份登入;
S2: /etc/init.d/portmap restart
一. Linux 与Linux 之间的通信之NFS:
S1: 安装NFS,配置NFS文件:
打开终端:vim /etc/exports ;
输入:/opt *( rw, sync, no-root-squash )
↓ ↓ ↓
① ② ③
①:可访问的目录(共享目录);
②:Tab键;
③:*:无限制ip访问地址; rw:可读写权限;sync:同步;no-root-squash:以root身份登入;
S2: /etc/init.d/portmap restart