加粗样式实现步骤
安装NFS服务
服务端
1.安装nfs-utils yum模块
2.配置nfs copy模块
3.根据配置创建目录,用户、授权 file、user、group、模块
4.启动并开机自启 service模块
服务端
1.安装nfs-utils yum模块
3.创建挂载目录 file模块
2.挂载 mount模块
-
hosts: 10.0.0.157
tasks:-
name: Install nfs Server
yum: name=nfs-utils state=present -
name: Configure nfs Server
copy: src=./exports.source dest=/etc/exports backup=yes -
name: Create nfs Group
group: name=nfs gid=888 -
name: Create nfs User
user: name=user1 uid=888 group=888 shell=/sbin/nologin create_home=no -
name: Create nfs Directory
file: path=/data state=directory owner=user1 group=nfs recurse=yes -
name: Service nfs Start
service: name=nfs-server state=started enabled=yes
-
-
ho