![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脚本编程
水里的银色果实
这个作者很懒,什么都没留下…
展开
-
ansible 自动化运维实战基础
简介:ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能,无客户端。自动化运维,首先要做的就是部署环境在ansible服务器上要解析,这里我只用了两台客户机,一台 服务器vim /etc/hosts192.168.122.159 ansible192.168.122.160 host1192.168.122.161 host2原创 2020-09-14 22:09:48 · 243 阅读 · 1 评论 -
linux下脚本自动化布置yum源
#!/bin/bash#下载vim和 wgetyum -y install vim wget#清理yum仓库rm -rf /etc/yum.repos.d/*#配置新的yum仓库wget wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/CentOS-Base.repo#更新yum源yum repolistyum makecache#扩展包wget -O /etc/yum.repos.原创 2020-09-13 17:18:36 · 145 阅读 · 0 评论 -
centos7下自动化部署wordpress
#!/bin/bash#关闭防火墙systemctl stop firewalldsystemctl disable firewalldgrep ‘SELINUX=disabled’ /etc/sysconfig/selinux &>/dev/nullif [ $? -ne 0 ]thensed -ri ‘/^SELINUX=/cSELINUX=disabled’ /etc/sysconfig/selinuxfisetenforce 0#准备LAMP环境 解压工具 w原创 2020-09-13 17:15:20 · 197 阅读 · 0 评论 -
centos7下脚本自动化部署discuz
#!/bin/bash#关闭防火墙systemctl stop firewalldsystemctl disable firewalld#关闭selinuxgrep ‘SELINUX=disabled’ /etc/sysconfig/selinuxif [ $? -ne 0 ]thensed -ri ‘/^SELINUX=/cSELINUX=disabled’ /etc/sysconfig/selinuxfisetenforce 0#配置LAMP环境yum -y install m原创 2020-09-13 17:11:50 · 202 阅读 · 0 评论