1、安装redis yum -y install redis 2、修改redis配置 vim /etc/redis.conf 找到redis.conf 并修改 daemonize no 为 daemonize yes 3、启动redis redis-server /etc/redis.conf 4、 ...
分类:
其他好文 时间:
2020-06-29 13:06:48
阅读次数:
91
一、php-fpm的配置 1、 php-fpm的配置,首先要关注进程数量。 php-fpm的进程管理方式有三种:static、dynamic、ondemand。 static方式,开启固定数量(pm.max_children)的子进程; dynamic方式,子进程的数量是根据以下指令动态设置的。而且 ...
分类:
数据库 时间:
2020-06-28 14:54:51
阅读次数:
87
一、安装PHP php官网下载地址:https://www.php.net/downloads 更新yum源(此步可以跳过) yum -y update 1.首先安装依赖包 yum install libxml2 libxml2-devel bzip2 bzip2-devel libcurl lib ...
分类:
Web程序 时间:
2020-06-26 18:39:30
阅读次数:
78
aviary.sh 是一个基于bash的分布式配置管理工具,可以用来奇幻chef,puppet,ansible aviary.sh 利用了git 以及linux 的crontab,以前有介绍过类似的工具bashible 参考图 说明 aviary.sh 的好多特性类似ansible,同时集成了git ...
分类:
其他好文 时间:
2020-06-26 14:39:26
阅读次数:
85
文章原文地址:https://www.113p.cn/15.html ...
分类:
其他好文 时间:
2020-06-25 10:18:01
阅读次数:
84
template.j2 模板 {{ansible_facts.hostname}}:{{ansible_default_ipv4.address}} This system's total memory is: {{ ansible_memtotal_mb }}MBs. The current fr ...
分类:
其他好文 时间:
2020-06-23 19:45:22
阅读次数:
71
参考:链接 介绍 WordPress 是一款使用 PHP 语言开发的博客平台,您可使用通过 WordPress 搭建属于个人的博客平台。本文以 CentOS 6.5 操作系统为例,手动搭建 WordPress 个人站点。 搭建 lnmp环境搭建 参考:链接 软件 WordPress:博客平台,本文以 ...
分类:
系统相关 时间:
2020-06-23 15:53:30
阅读次数:
296
实战环境LNMP项目实战:L:Linux(centos7.6)http://mirrors.cqu.edu.cn/CentOS/7.6.1810/isos/x86_64/N:Tengine(1.12.2)http://tengine.taobao.org/download/tengine-2.1.2.tar.gz主机信息:部署规划:172.24.77.242(sr2.dj.com):运行Tengi
分类:
其他好文 时间:
2020-06-22 19:33:54
阅读次数:
98
一、环境信息 CentOS Linux release 8.1.1911 (Core) Redis server v=5.0.3 二、yum方式安装 1、添加EPEL仓库 sudo yum install epel-release 2、更新 sudo dnf update 3、使用 CentOS 8 ...
分类:
数据库 时间:
2020-06-22 12:41:55
阅读次数:
65
编写脚本: [root@localhost ~]# vim /shell/lnmp.sh #!/bin/bash yum -y install epel-release &> /dev/null yum -y clean all &> /dev/null yum -y install nginx p ...
分类:
系统相关 时间:
2020-06-21 20:02:38
阅读次数:
57