网站集群

ansible之setup及roles

setup #查看所有参数 ansible web -m setup #搜索 ansible web -m setup -a 'filter=*ip*' #常用参数 ansible_all_ipv4_addresses #所有ipv4地址 ansible_default_ipv4 #默认ipv4地址 ansible_all_ip...

ansible之模块二及playbook

yum模块 yum源配置 yum查看安装包组 yum grouplist #查看 yum groupinstall 包名 #安装 #参数 disablerepo #禁用源 enablerepo #启动源 name #包名 state install 或(present installd latest) #安装 r...

ansible之安装及模块一

控制主机安装ansible mv /etc/yum.repos.d/epel-7.repo{,_bak} wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum install -y ansible 创建秘钥对配置ssh秘钥登录 ssh-keygen ...

详解FTP

1.下载安装包 wget http://192.168.6.188/down/ftp/pure-ftpd-1.0.47.tar.gz 2.解压并进入解压后的目录 tar -zxvf pure-ftpd-1.0.47.tar.gz cd pure-ftpd-1.0.47 3.安装编译需要的gcc组件,已安装的跳过 yum -y in...

详解PHP

检查安装基本组件库 yum install -y zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel yum install -y freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel icu lib...

详解MYSQL

安装基本组件库 yum -y install gcc-c++ perl ncurses ncurses-devel libaio numactl numactl-libs perl-Module-Install.noarch net-tools vim wget mysql 1、创建mysql普通用户 id -u mysql >/dev/null 2...

详解NGINX

1、检查nginx基本依赖包是否安装pcre-devel openssl-devel rpm -qa pcre-devel pcre rpm -qa openssl-devel openssl 若没有执行以下命令安装 yum -y install pcre-devel pcre yum -y openssl-devel openssl ...