这篇文章主要介绍了linux如何实现一键部署nfs过程图解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
服务器信息
管理服务器:m01 172.16.1.61
服务端:nfs01 172.16.1.31
客户端:web01 172.16.1.7 web02 172.16.1.8
在m01上编写脚本
![图片[1]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226090556749.png?imageView2/0/format/webp/q/75)
服务端nfs_server.sh
![图片[2]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170557437.png?imageView2/0/format/webp/q/75)
客户端nfs_client.sh
![图片[3]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170558438.png?imageView2/0/format/webp/q/75)
配置ssh免秘钥连接
![图片[4]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170559142.png?imageView2/0/format/webp/q/75)
一键远程部署nfs服务
检查ansible主机列表文件
![图片[5]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170600634.png?imageView2/0/format/webp/q/75)
部署服务端
![图片[6]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170601707.png?imageView2/0/format/webp/q/75)
部署客户端
![图片[7]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170602827.png?imageView2/0/format/webp/q/75)
检测结果
![图片[8]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170602411.png?imageView2/0/format/webp/q/75)
![图片[9]-linux如何实现一键部署nfs过程图解_Linux-安全小天地](https://img.godyu.com/2023/12/20231226170604176.png?imageView2/0/format/webp/q/75)
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持安全小天地。
THE END











暂无评论内容