Table of Contents 1. "ansible 安装 httpd" 2. "建立 httpd 服务器,要求提供两个基于名称的虚拟主机:" ansible 安装 httpd 1. 注意:提前进行完公钥复制 2. 安装 ansible 并进行配置 1. 安装 2. 配置 [sg1] 192. ...
分类:
Web程序 时间:
2020-01-18 10:29:30
阅读次数:
93
Linux中下载安装ab:yum install -y httpd-tools -p file(请求的文件) ab -n 800 -c 800 http://192.168.0.10/(-n发出800个请求,-c模拟800并发)输入ab查看它的参数使用说明-n requests Number of ...
分类:
Web程序 时间:
2020-01-17 13:35:05
阅读次数:
103
部署LVS_DR群集LVS_DR数据包流向分析为了方便进行原理分析,将Client0与群集机器放在同一网络中,数据包流经路线为1-2-3-41.Client向目标VIP发出请求,Director(负载均衡器)接收。此时IP包头及数据帧信息为:2.Director根据负载均衡算法选择RealServer_1,不修改也不封装IP报文,而是将数据帧的MAC地址改为RealServer_1的MAC地址,然
分类:
其他好文 时间:
2020-01-17 11:37:56
阅读次数:
101
在互联网应用中,随着站点对硬件性能、响应速度、服务稳定性、数据可靠性等要求越来越高,单台服务器力不从心。所以我们需要通过一些方法来解决这样的瓶颈。
? 最简单的方法就是使用价格昂贵的大、小型的主机;但这样在大多数企业中显然是不可取或者说不现实的。那么我们就需要通过多个普通服务器构建服务器群集。
分类:
其他好文 时间:
2020-01-17 09:27:18
阅读次数:
147
#!/bin/bashyum -y install keepalived >/dev/nulltouch /opt/kill.shcat >/opt/kill.sh<<EOF#!/bin/bashsystemctl stop keepalivedEOFsame=`grep -f /opt/keepa ...
分类:
其他好文 时间:
2020-01-16 22:01:23
阅读次数:
72
#!/bin/bash yum -y install keepalived > /dev/null touch /opt/kill.sh cat >/opt/kill.sh<<EOF #!/bin/bash systemctl stop keepalived EOF same=`grep -f /o ...
分类:
其他好文 时间:
2020-01-16 21:55:05
阅读次数:
96
1:启动apache:systemctl status httpd.service 2:查看看日志:tail -f /var/log/httpd/error_log 报:Apache ERROR: No space left on device: AH00023: Couldn't create t ...
分类:
Web程序 时间:
2020-01-16 18:37:27
阅读次数:
93
!/bin/bash path=/var/log log=${path}/httpd mysql.log name=(httpd mysql) exs_init[0]="systemctl restart httpd" exs_init[1]="systemctl restart mysqld" f ...
分类:
系统相关 时间:
2020-01-16 18:35:27
阅读次数:
184
制作CentOS7.7 内网yum源 如果CentOS服务器处在内网环境中时,如果缺少依赖手动安装那么会非常麻烦,要花费很多时间来寻找rpm包,现在如果搭建本地的yum源,就非常方便了,如果搭建http的,那么局域网内其他服务器就都可以使用了,使用yum源首先需要一个CentOS安装镜像 | IP ...
分类:
其他好文 时间:
2020-01-16 10:45:21
阅读次数:
90
环境: 一、系统标准化 1、安装必要软件 2、下载标准版包 3、修改config.ini配置文件 3、执行脚本 对于修改终端配色可注释 4、重启测试配置 检查配置 二、基本组件安装 185、184端 2.1 LNMP安装 确定80、3306.9000端口是否启动 1、验证 ip/index.html ...
分类:
Web程序 时间:
2020-01-15 11:36:43
阅读次数:
97