摘要:
Nginx访问控制 基于IP的访问控制 - http_access_module 基于用户的信任登录 - http_auth_basic_module #语法1(允许那些IP可以访问) Syntax:allow address | CIDR | unix: | allk; Default:—— Co 阅读全文
摘要:
1、创建脚本 # vi /etc/init.d/nginx #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description 阅读全文
摘要:
打开git bash 连接ansible服务器,然后进入deploy用户 #ssh root@192.168.96.188 进入python3.6虚拟环境 #su - deploy #source .py3-a2.5-env/bin/activate 加载ansible 2.5版本 #source 阅读全文
摘要:
File模块 在目标主机创建文件或目录,并赋予其系统权限 - name: create a file file:'path=/oot/foo.txt state=touch mode=0755 owner=foo group=foo' Copy模块 实现Ansible服务端到目标主机的文件传送 - 阅读全文