11 2018 档案

摘要:<?php $slhttp = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_P 阅读全文
posted @ 2018-11-20 15:41 codeforu2 阅读(4522) 评论(0) 推荐(1)
摘要:Zabbix for centos7 服务端安装 环境准备 安装MySQL 安装zabbix软件 rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm yum insta 阅读全文
posted @ 2018-11-13 20:18 codeforu2 阅读(244) 评论(1) 推荐(0)
摘要:一、安装 yum -y install haproxy 二、配置 vi /etc/haproxy/haproxy.cfg systemctl restart haproxy tail -f /var/log/messages 启动失败先关防火墙和selinux 管理地址 http://10.10.6 阅读全文
posted @ 2018-11-07 19:40 codeforu2 阅读(245) 评论(0) 推荐(0)
摘要:环境: 主机 10.10.6.105 备机 10.10.6.106 VIP 10.10.6.188 一、安装 yum install keepalived -y 二、配置文件(/etc/keepalived/keepalived.conf) 主机配置 从机配置与主机大致相同 监控脚本(/etc/ke 阅读全文
posted @ 2018-11-07 18:32 codeforu2 阅读(2174) 评论(1) 推荐(0)
摘要:free 命令显示系统内存的使用情况,包括物理内存、交换内存(swap)和内核缓冲区内存。 如果加上 -h 选项,输出的结果会友好很多: 有时我们需要持续的观察内存的状况,此时可以使用 -s 选项并指定间隔的秒数: $ free -h -s 3 上面的命令每隔 3 秒输出一次内存的使用情况,直到你按 阅读全文
posted @ 2018-11-06 10:28 codeforu2 阅读(303) 评论(0) 推荐(0)
摘要:python 环境 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod o+x Miniconda3-latest-Linux-x86_64.sh pip install Pillowpip 阅读全文
posted @ 2018-11-03 19:02 codeforu2 阅读(808) 评论(0) 推荐(0)
摘要:需求: 当服务器的访问压力过大时,实现降级,将接受不了的请求重定向到应急界面。 一、限流nginx设置 nginx限流使用模块 upstream 放置在http模块 #超出的请求会返回502状态码 放置在server模块 二、准备测试环境 开启8080端口,使用web.py 开启一个简单的端口 安装 阅读全文
posted @ 2018-11-01 17:55 codeforu2 阅读(3961) 评论(0) 推荐(2)
摘要:系统Centos7 编辑使用的代理邮箱信息 vi /etc/mail.rc set from=xxx@163.comset smtp=smtp.163.comset smtp-auth-user=xxx@163.comset smtp-auth-password= 使用客户端授权密码set smtp 阅读全文
posted @ 2018-11-01 10:49 codeforu2 阅读(484) 评论(0) 推荐(0)