上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页
摘要: MySQL主从复制 前言: A、全年无故障率(非计划内故障停机) 99.9% > 0.001*365*24*60=525.6 min 99.99% > 0.0001*365*24*60=52.56 min 99.999% > 0.0001*365*24*60=5.256 min B、高可用架构方案 阅读全文
posted @ 2020-11-18 00:22 taotaozh 阅读(135) 评论(0) 推荐(0)
摘要: Linux配置NTP时间同步 一、ntp和ntpdate区别 两个服务都是centos自带的(centos7中不自带ntp) ntp守护进程为ntpd,配置文件是/etc/ntp.conf ntpdate用于客户端的时间矫正,非NTP服务器可以不启动NTP。 二、搭建 NTP(network tim 阅读全文
posted @ 2020-11-17 23:34 taotaozh 阅读(3053) 评论(0) 推荐(0)
摘要: MySQL-5.7.2安装 一、下载 [root@master app]# wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-linux-glibc2.12-x86_64.tar.gz 二、安装步骤 [root@maste 阅读全文
posted @ 2020-11-03 23:21 taotaozh 阅读(490) 评论(0) 推荐(0)
摘要: Solr删除数据 步骤: 1、在Solr客户端左下方 Core Selector 中点选想要删除数据的索引库 2、点选Documents 3、右侧Document Type中点选XML 4、Document(s)中输入: <delete><query>*:*</query></delete> <co 阅读全文
posted @ 2020-11-02 18:40 taotaozh 阅读(2584) 评论(0) 推荐(0)
摘要: Nginx笔记 一、编译安装nginx 1.1、安装依赖 yum -y install gcc gcc-c++ autoconf automake make yum -y install pcre-devel yum -y install openssl openssl-devel 1.2、安装ng 阅读全文
posted @ 2020-10-21 00:56 taotaozh 阅读(46) 评论(0) 推荐(0)
摘要: ### 一、dockerfile镜像设置中文 - centos镜像默认不支持中文,把下面的内容加到dockerfile即可 - 亲测有效 ```yaml # 修改时区 RUN rm -rf /etc/localtime && ln -snf /usr/share/zoneinfo/Asia/Shan 阅读全文
posted @ 2020-10-13 19:37 taotaozh 阅读(2718) 评论(0) 推荐(0)
摘要: 一、注意事项 # 如何让你的计算机能够正常的启动django项目 1.计算机的名称不能有中文 2.一个pycharm窗口只开一个项目 3.项目里面所有的文件也尽量不要出现中文 4.python解释器尽量使用3.4~3.6之间的版本 (如果你的项目报错 你点击最后一个报错信息 去源码中把逗号删掉) # 阅读全文
posted @ 2020-10-08 00:48 taotaozh 阅读(91) 评论(0) 推荐(0)
摘要: 一、安装 pip install paramiko 二、连Linux服务器的2种方式 2.1、方式一 import paramiko def sshExeCMD(): client = paramiko.SSHClient() # 允许连接不在~/.ssh/known_hosts文件中的主机 cli 阅读全文
posted @ 2020-10-07 00:27 taotaozh 阅读(286) 评论(0) 推荐(0)
摘要: 一、进程 1.1、方式一 from multiprocessing import Process import time #方式一 def task(name): print(f"my name is {name},启动时间") time.sleep(2) print(f"my name is {n 阅读全文
posted @ 2020-10-06 17:08 taotaozh 阅读(1005) 评论(0) 推荐(0)
摘要: python之网络编程 一、网络开发架构 1.1、C/S架构: 常见的:QQ、微信 优点: 可以离线使用/功能更完善/安全性更高 client 客户端 我们需要安装的 server端 在服务器 1.2、B/S架构: 优点: 不用安装就可以使用 统一PC端用户的入口 常见的:百度、博客园、谷歌 B:b 阅读全文
posted @ 2020-10-06 16:02 taotaozh 阅读(193) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页