上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页
摘要: 业务分析 宽表模式 宽表模式存在的问题,数据冗余 数据更新异常 数据删除异常 宽表模式存在的问题: 数据插入异常,部分数据由于缺失主键信息而无法写入表中 数据更新异常:修改一行中某列的值时,同时修改了多行数据 数据删除异常:删除某一数据时不得不删除另一数据 数据冗余:相同的数据在一个表中出现了多次 阅读全文
posted @ 2020-07-06 12:01 reblue520 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.centos7环境编译安装redis5.0.8cd /usr/localwget http://download.redis.io/releases/redis-5.0.8.tar.gztar xf redis-5.0.8.tar.gzcd redis-5.0.8make && make ins 阅读全文
posted @ 2020-07-02 19:56 reblue520 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 有时候我们批量更新域名的证书后需要检查这些证书是否已经生效,避免因过期引发问题 # cat check_domain_ssl.py # coding: utf-8 # 查询域名证书到期情况 import re import time import subprocess from datetime i 阅读全文
posted @ 2020-06-15 11:39 reblue520 阅读(248) 评论(0) 推荐(0) 编辑
摘要: centos环境下使用zabbix配合python脚本对supervisor中的进程运行状态进行监控# 需要监控的supervisor相关的进程如下# supervisorctl status maxapi-laravel-convert:maxapi-laravel-convert_01 RUNN 阅读全文
posted @ 2020-06-12 16:27 reblue520 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 不修改vhosts通过python和shell实现一个域名解析到不同的ipcurl --resolve chinasoft.com:80:1.1.1.1 "http://chinasoft.com/"完整示例:cbs_servers="1.1.1.1:ws_cbs_frontend_web01 1. 阅读全文
posted @ 2020-05-29 21:11 reblue520 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 全站跳转404页面的示例 # 20200520 全站跳转404页面 if ($request_uri !~* "/404.html") { rewrite ^/(.*)$ /404.html permanent; } 404页面源码:404.html <!DOCTYPE html> <html> < 阅读全文
posted @ 2020-05-20 19:48 reblue520 阅读(976) 评论(0) 推荐(0) 编辑
摘要: 把数据从tidb中导出到mysql数据库中# docker ps 找出容器id# 进入容器# docker exec -it 44a9fa0f6c02 sh# 发现是4000端口映射到了主机的3306端口# 访问tidbmysql -h192.168.11.222 -P 3306 -u root - 阅读全文
posted @ 2020-05-14 16:49 reblue520 阅读(777) 评论(0) 推荐(0) 编辑
摘要: # 修改 elastic 密码,只需要修改其中一台集群其他服务器不需要重复执行-u: 输入现在的用户名密码 -d : 新密码# curl -H "Content-Type:application/json" -XPOST -u elastic:now_password 'http://10.10.1 阅读全文
posted @ 2020-05-13 21:34 reblue520 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 集群环境: centos7.6 + elasticsearch7.5.1 3台集群服务器,三台服务器都是8核32G内存,SSD磁盘,都充当数据节点,一台主节点 现象: es集群状态是绿色,es的磁盘io和cpu使用率都很高,php客户端连接查询超时 集群日志出现大量如下报错: [2020-05-12 阅读全文
posted @ 2020-05-13 21:32 reblue520 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 1. 启动一个空的MySQL服务器实例,映射端口到本地3306,映射db数据到本地磁盘 docker run --name mysql-server -p 3306:3306 -v /data/mysql_data:/var/lib/mysql -t -e MYSQL_DATABASE="zabbi 阅读全文
posted @ 2020-04-17 09:57 reblue520 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: # 查看apache的版本 # 可以看到使用了 APR 1.6.5 APR-UTIL 1.6.1 # /www/server/apache/bin/httpd -V Server version: Apache/2.4.41 (Unix) Server built: Oct 11 2019 21:2 阅读全文
posted @ 2020-04-14 20:50 reblue520 阅读(469) 评论(0) 推荐(0) 编辑
摘要: elasticsearch7.5.1集群安装elasticsearch-jieba-plugin 7.4.2 和analysis-kuromoji 日语分词器 安装插件需要在集群的其中一个节点安装后重启es程序,没有问题后拷贝到其他节点重启后生效 1.elasticsearch-jieba需要使用g 阅读全文
posted @ 2020-04-14 20:36 reblue520 阅读(921) 评论(0) 推荐(0) 编辑
摘要: 解决pureftp目录无法显示的问题 # pureftp账号登录后发现很多目录无法显示,通过查看配置文件发现是 LimitRecursion 10000 8 # 这个限制,最多能列出10000个文件 # public_html 这个目录下有10917,修改这个参数并且重启pureftp即可 root 阅读全文
posted @ 2020-03-27 18:48 reblue520 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 在django中使用celery Django版本1.9.8 pip install django-celery Redis要指定版本,默认的3.x版本有问题 Pip uninstall redis pip install redis==2.10.6 创建django的app celery_cour 阅读全文
posted @ 2020-03-14 00:27 reblue520 阅读(859) 评论(1) 推荐(0) 编辑
摘要: Django创建站点的基本步骤 下载css样式文件 https://semantic-ui.com/introduction/getting-started.html 使用django创建项目 D:\python\mooc_uinversity_songtian\python_web>django- 阅读全文
posted @ 2020-03-14 00:16 reblue520 阅读(373) 评论(0) 推荐(0) 编辑
摘要: mail_receive_monitor05.py import zmail from tkinter import * import tkinter.messagebox server = zmail.server('reblue520@163.com', 'reblue.520') mail = 阅读全文
posted @ 2020-03-13 23:59 reblue520 阅读(425) 评论(0) 推荐(0) 编辑
摘要: import smtplib from smtplib import SMTP_SSL from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.header impo 阅读全文
posted @ 2020-03-13 23:50 reblue520 阅读(661) 评论(0) 推荐(0) 编辑
摘要: import xlrd import xlwt # 需求:拷贝excel中的内容到另外一个excel中 flile_name = "7月下旬入库表.xlsx" # 读取源excel xlsx = xlrd.open_workbook(flile_name) # xlsx = xlrd.open_wo 阅读全文
posted @ 2020-03-13 23:47 reblue520 阅读(6336) 评论(0) 推荐(0) 编辑
摘要: centos7环境通过rpm包安装mysql8.0.19mysql的rpm包下载地址:http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/ # 下载mysql8.0.19版本mysql-community-client-8.0.19-1. 阅读全文
posted @ 2020-03-13 23:34 reblue520 阅读(629) 评论(0) 推荐(0) 编辑
摘要: centos7环境编译安装python3.7.7 # 安装基本的基础源和epel源为阿里云的mirrors wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O / 阅读全文
posted @ 2020-03-13 23:32 reblue520 阅读(790) 评论(0) 推荐(0) 编辑
摘要: app名:sysmonitor sysmonitor/apps.py #_*_ coding:utf-8 _*_ from __future__ import unicode_literals from django.apps import AppConfig class SysmonitorCon 阅读全文
posted @ 2020-03-06 17:53 reblue520 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 创建一个app,并且把这个app拖入到统一的apps 作为root的包中 D:\>cd D:\python\mxonline D:\python\mxonline>python manage.py start app firstapp 搭建基本的静态文件images/css/html框架 Css文件 阅读全文
posted @ 2020-03-05 18:17 reblue520 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Windows2008r2的iis7服务器升级网站ssl证书 1.使用openssl的windows版本合成pfx证书 http://slproweb.com/download/Win64OpenSSL-1_0_2u.exe 合成证书 openssl pkcs12 -export -out serv 阅读全文
posted @ 2020-02-28 18:12 reblue520 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: # 运行程序报错/usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf -u apache[root@eus_influenex_web01:/usr/local/php]# /usr/bin/python / 阅读全文
posted @ 2020-02-06 11:11 reblue520 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: nodejs的yum安装部署# nodejs-8.15.1curl -sL https://rpm.nodesource.com/setup_8.x | bash -# 默认安装最新版本安装指定版本yum install nodejs-8.15.1 -y [root@eus_influenex_we 阅读全文
posted @ 2020-02-05 15:55 reblue520 阅读(616) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页