02 2023 档案

摘要:一.了解role结构 roles/project/ :项目名称,有以下子目录 files/ :存放由copy或script模块等调用的文件 templates/:template模块查找所需要模板文件的目录 tasks/:定义task,role的基本元素,至少应该包含一个名为main.yml的文件; 阅读全文
posted @ 2023-02-23 14:19 yuhaohao 阅读(40) 评论(0) 推荐(0) 编辑
摘要:简单说明 这里使用mongodb的过程中,可以通过mongo shell或者mongo的可视化工具进行连接。 mongo shell连接 # 使用root用户登录mongo mongodb@p8lnp:/$ mongo --username root --password --host 17.2.2 阅读全文
posted @ 2023-02-16 20:05 yuhaohao 阅读(77) 评论(0) 推荐(0) 编辑
摘要:sed命令 替换目录下所有文件的某个字符串 sed -i 's/test/yuhaohao/g' `grep -lr yuhaohao *` export 函数到外部使用 functon test() { echo "xxx" } export -f test 获取脚本执行的绝对路径 bashCop 阅读全文
posted @ 2023-02-13 19:34 yuhaohao 阅读(42) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示