网站集群

ansible之setup及roles

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

ansible之模块二及playbook

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

ansible之安装及模块一

控制主机安装ansible ```shell 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秘钥...

详解FTP

cd /usr/local/src wget http://luopengtest.gotoip2.com/shell/lnmp/pure-ftpd-1.0.47.tar.gz tar xzf pure-ftpd-1.0.47.tar.gz cd pure-ftpd-1.0.47 ./configure --prefix=/usr/local/pureftpd #安装目录 ...

详解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 ...