摘要: ansible安装 yum -y install ansible #如果是内网安装,外网机相同环境机器,执行 yum -y install ansible --downloadonly --downloaddir=/root/ansible ansible默认模块为command,可以根据需要修改为 阅读全文
posted @ 2022-05-27 14:47 whtjyt 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 生成密码文件 yum -y install httpd 生成密码文件 #/apps/openresty/nginx/passwd/为密码所在文件夹,.htpasswd为生成的文件 #htpasswd -c(覆盖) -b(直接从命令行获取密码) -m使用MD5加密 -s使用crypt()加密 #-D从 阅读全文
posted @ 2022-05-27 14:46 whtjyt 阅读(220) 评论(0) 推荐(0) 编辑
摘要: location /setup { stub_status; #启用模块监控 #出于安全,可以引用nginx密码验证 auth_basic "login password"; auth_basic_user_file /apps/nginx/passwd/.htpasswd ; #也可以增加ip限制 阅读全文
posted @ 2022-05-27 14:45 whtjyt 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 需要安装的插件 build-user-vars-plugin Build Timestamp 其中,pipeline内容如下 pipeline { agent any stages { stage('build') { steps { sh 'pwd' } } stage('test') { ste 阅读全文
posted @ 2022-05-27 14:44 whtjyt 阅读(139) 评论(0) 推荐(0) 编辑