摘要: 转发自 https://www.cnblogs.com/1214804270hacker/p/9325150.html 一、关于Nginx的负载均衡 在服务器集群中,Nginx起到一个代理服务器的角色(即反向代理),为了避免单独一个服务器压力过大,将来自用户的请求转发给不同的服务器。详情请查看我的另 阅读全文
posted @ 2019-10-17 15:26 周围圆 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: from connect_db import DB val = [{"id": 1, "xh": 1001, "name": "a"}, {"id": 2, "xh": 2002, "name": "b"}, {"id": 3, "xh": 3003, "name": "c"}] with DB(db="test") as db: db. 阅读全文
posted @ 2019-10-08 16:11 周围圆 阅读(549) 评论(0) 推荐(0) 编辑
摘要: #import mysql.connector import pymysql #mydb = mysql.connector.connect( # host = "localhost", # user = "root", # passwd = "123456", # database = "mysql") # #mycu... 阅读全文
posted @ 2019-10-08 16:10 周围圆 阅读(2825) 评论(0) 推荐(1) 编辑
摘要: 网站突然无法登陆,看日志报错ora-00020,超出最大进程数 show parameter proc alter system processes=300 scope=spfile; 修改后想查一下会话量 select count(*) from v$session; 结果报错 ORA-01012 阅读全文
posted @ 2019-09-24 15:00 周围圆 阅读(237) 评论(0) 推荐(0) 编辑
摘要: import traceback import requests import time from bs4 import BeautifulSoup #from write_excel import OpenpyxlExcel from write_excel import OprationExcel class RequestInfo(object): def __init__(self): s 阅读全文
posted @ 2019-09-20 16:00 周围圆 阅读(293) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Wed Sep 18 14:05:24 2019 @author: Administrator """ import os import traceback #import openpyxl import xlrd import xlwt from xlutils.copy import copy # # # 操作.xl 阅读全文
posted @ 2019-09-20 15:59 周围圆 阅读(524) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Mon Sep 9 10:07:50 2019 @author: Administrator """ import os import re import traceback import requests import openpyxl from bs4 import BeautifulSoup #from write 阅读全文
posted @ 2019-09-20 15:59 周围圆 阅读(145) 评论(0) 推荐(0) 编辑
摘要: from functools import reduce # map函数,可以将一个列表内的元素代入指定的函数内,运算后生成一个新的列表 # 实现批量操作功能 list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] def f1(x): return x**2 def f2(x): return x + 1 def f3(x): return x - 1 def map_test( 阅读全文
posted @ 2019-09-20 14:00 周围圆 阅读(285) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Wed Sep 18 14:05:24 2019 @author: Administrator """ import os import traceback import openpyxl import xlrd import xlwt from xlutils.copy import copy # 操作.xlsx格式e 阅读全文
posted @ 2019-09-19 17:25 周围圆 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: 关闭命令行报警音 vi /etc/inputrc 将第二行 set bell-style none 前的#号去掉,重启生效 (centos 7) 关闭vi编辑器报警音 root用户打开~/.bashrc 写入 setterm -blength 0 重启生效(centos 7) 阅读全文
posted @ 2019-09-16 19:58 周围圆 阅读(520) 评论(0) 推荐(0) 编辑