上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 准备环境:两台机器,机器上提前装好nginx。 第一种方法 安装keepalive,如无特殊要求,直接yum安装即可。 # ct1 [root@ct1 ~]# yum install -y keepalived # ct2 [root@ct2 ~]# yum install -y keepalive 阅读全文
posted @ 2021-11-03 10:05 忘川的彼岸 阅读(319) 评论(0) 推荐(0) 编辑
摘要: # 默认配置文件 [root@ct1 ~]# cat /etc/keepalived/keepalived.conf ! Configuration File for keepalived global_defs { # 全局配置 notification_email { # 报警邮件地址 acas 阅读全文
posted @ 2021-10-29 10:35 忘川的彼岸 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 系统版本:CentOS Linux release 8.3.2011 Erlang版本:12.1 方法一: 安装epel源 # 下载新epel dnf install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rp 阅读全文
posted @ 2021-10-26 14:32 忘川的彼岸 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 系统版本:CentOS Linux release 8.3.2011 JDK版本:1.8 Zookpeer版本:3.7.0 此次搭建的集群为伪集群,即在一台机器上开3个实例。 下载安装包 [root@i-h0xe1oiq tools]# wget https://dlcdn.apache.org/z 阅读全文
posted @ 2021-10-25 16:22 忘川的彼岸 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 环境 系统版本:CentOS Linux release 8.3.2011 Python版本:Python-3.11.0a1 Python下载地址:https://www.python.org/ftp/python/ 下载安装包 [root@i-h0xe1oiq data]# wget https: 阅读全文
posted @ 2021-10-21 14:12 忘川的彼岸 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 机器A:能联网 机器B:内网 Python第三方库官网 机器A: 在python虚拟环境中安装需要的第三方库 [root@i-h0xe1oiq data]# mkvirtualenv -p /usr/local/bin/python3.9 env39 (env39) [root@i-h0xe1oiq 阅读全文
posted @ 2021-10-20 16:31 忘川的彼岸 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 确认python解释器的路径 [root@i-h0xe1oiq ~]# which python3.9 /usr/local/bin/python3.9 安装python虚拟运行环境 pip3.9 install virtualenv pip3.9 install virtualenvwrapper 阅读全文
posted @ 2021-10-20 13:45 忘川的彼岸 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1. 常用的sqlalchemy字段类型 类型名 python中类型 说明 Integer int 普通整数,一般是32位 SmallInteger int 取值范围小的整数,一般是16位 BigInteger int或long 不限制精度的整数 Float float 浮点数 Numeric de 阅读全文
posted @ 2021-07-30 14:19 忘川的彼岸 阅读(455) 评论(0) 推荐(0) 编辑
摘要: Django的DateTimeField字段和TimeField字段长度默认为6,这是在Django源码中预留设置; 在路径django.db.backends.mysql.base下,有一段字段类型配置: 这样我们如果不想使用这个配置可以直接修改图片中的部分为datetime,或者手动修改数据库字 阅读全文
posted @ 2021-07-27 15:12 忘川的彼岸 阅读(308) 评论(0) 推荐(0) 编辑
摘要: CentOS版本:CentOS Linux release 7.6.1810 (Core) 安装Telnet yum install -y telnet-server 安装xinetd yum install -y xinetd 启动服务 systemctl start xinetd.service 阅读全文
posted @ 2021-07-23 16:29 忘川的彼岸 阅读(1079) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页