Centos7升级内核版本开启bbr加速 2年前 (2022-05-19) faer615 系统相关 506℃ 点击数:105 一、Centos7升级内核版本 # 1.导入elrepo的key rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org # 2.安装elrepo-relea…Read more » bbrcentoscentos7coredbelrepoetchttpipkernelkernel5keylspspythonrpmserversysctlsystemtcpyum内核安装版本解决设置配置
Django执行migrate无法生成表 2年前 (2022-05-11) faer615 MySQL 362℃ 点击数:53 错误提示: NO MIGRATIONS TO APPLY 执行命令 1. 查看django_migrations数据表 SELECT * FROM django_migrations; 发现在每一次执行迁移生成的…Read more » djangohamigrateMySQLpython删除命令数据库
superset语言及数据库设置 2年前 (2022-03-23) faer615 故障排错, 数据库 420℃ 点击数:56 # 修改文件lib/python3.9/site-packages/superset/config.py # 数据库依赖 SQLALCHEMY_DATABASE_URI = ‘mysql://root:password@l…Read more » hapythonpython3rootsuperset数据库设置
python基础语法 2年前 (2022-02-11) faer615 python 341℃ 点击数:18 Python 标识符 在python里,标识符有字母、数字、下划线组成。 在python中,所有标识符可以包括英文、数字以及下划线(_),但不能以数字开头。 python中的标识符是区分大小写的。 以下划线开头的标识符是有特殊…Read more » hakeylspempython函数命令语法
15-函数-定义和调用 2年前 (2022-02-07) faer615 python 294℃ 点击数:26 函数-定义和调用 函数就是完成特定功能的一个语句组,这组语句可以作为一个单位使用,并且给它去一个名字。 可以通过函数名在程序的不同地方多次执行(这通常叫做函数调用),却不需在所有的地方都重复编写这些语句。 自定义函数 — …Read more » DZhalvpempspython函数定义调用
06.运算符与表达式 2年前 (2022-02-07) faer615 python 215℃ 点击数:9 #!/usr/bin/env python #coding utf-8 a=int(raw_input(“Please input number1: “)) b=int(raw_input(“Please input numbe…Read more » DZhalvpempython运算符
CentOS安装分布式存储系统Ceph 2年前 (2022-01-29) faer615 存储系统 342℃ 点击数:75 Ceph 提供3种存储方式:对象存储,块存储和文件系统. 一、 硬件环境准备 准备了6台机器,其中3台物理服务器做监控节点(mon: mon1, mon2, mon3),2台物理服务器做存储节点(osd: osd1, osd…Read more » centoscephdbepelgithaipkeykeyslinuxlogormpippspushpythonrpmsaltsaltstacktcpwebyum云计算分布式存储存储存储系统安装排错操作系统故障日志网络节点防火墙集群
pacemaker+corosync+haporxy高可用集群部署 2年前 (2022-01-25) faer615 Linux, 系统相关 325℃ 点击数:40 # 安装 Corosync以及pacemaker 部署 yum install -y pacemaker pcs psmisc policycoreutils-python corosync fence-agents-all …Read more » centoscorosynchahaporxyhaproxyimgipk8sloglvpacemakerpempspythontcpyum高可用
session校验 2年前 (2022-01-21) faer615 python 509℃ 点击数:43 from django.shortcuts import render, redirect, HttpResponse from django.urls import reverse # Create your views h…Read more » djangohaloglvormpspython数据库
运算符与表达式 2年前 (2022-01-20) faer615 python 266℃ 点击数:17 #!/usr/bin/env python #coding utf-8 a=int(raw_input(“Please input number1: “)) b=int(raw_input(“Please input numb…Read more » DZhalvpempython运算符
redis命令 2年前 (2022-01-19) faer615 数据库 270℃ 点击数:23 # redis单进程 单线程 # 切换数据库 # 默认有16个数据库,0-15为具体数据库的编号,默认进入redis的db0 select number # 查看redis服务的整体情况 info # keys表达式 …Read more » haimgiplvpempythonredis存储数据库
python文件上传 2年前 (2021-12-21) faer615 python 251℃ 点击数:10 # 上传文件 def imgupload(request): # 接收上传的文件 file = request.FILES.get(‘img_url’, None) import random, time if file: #…Read more » halvpempython
orm多表关系-day2 2年前 (2021-12-20) faer615 python 316℃ 点击数:13 ### 多表关系,一对一 2021-12-20 “` # 一对一添加 # # 添加详情记录1 # accountsinfo_obj = AccountsInfo.objects.create(department=’平台运营…Read more » lvormpython
python3测试地址存活 2年前 (2021-12-12) faer615 python 309℃ 点击数:15 #!/bin/env python3 # -*- coding: utf-8 -*- import platform import os import time import threading import socket…Read more » findhaiplvpempythonpython3Windows网络
django上传文件 2年前 (2021-12-08) faer615 python, Web技术 232℃ 点击数:12 # 上传文件 def imgupload(request): # 接收上传的文件 file = request.FILES.get(‘img_url’, None) import random, tim…Read more » djangohalvpempython