centos同步yum源到本地
###### 删除/etc/yum.repos.d下所有源文件 下载源repo到本地 ```shell wget -O /etc/yum.repos.d/aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo ``` ###### 安装yum-utils
技术笔记、项目复盘、阅读摘录和问题清单。
###### 删除/etc/yum.repos.d下所有源文件 下载源repo到本地 ```shell wget -O /etc/yum.repos.d/aliyun.repo https://mirrors.aliyun.com/repo/Centos-7.repo ``` ###### 安装yum-utils
###### 安装NTP服务 ```shell 安装前检查 rpm -qa ntp 安装 yum install -y ntp ``` ###### 修改配置文件: ```shell /etc/ntp.conf ``` 这个配置文件是ntp服务唯一的配置文件 配置文件模版: ``` vim /etc/ntp.
rpm源同步到本地请看[上一篇](https://www.ywcsb.vip/blog/111.html "上一篇")博文 ###### 服务端配置 ```python # 1. 创建 yum 仓库目录,rpm 包都上至此目录 mkdir -p /application/yum/centos6/x86_64/
1、通配符: 通配符,即 * 符号,可以添加在url中,代替任意字符。假设您添加的网站域名是url.com,则通配符的使用规则如下: 网站域名后不能直接添加通配符,如url.com* 这种方式会提示错误;通配符与域名至少间隔一个字符,如url.com?abab需用url.com?* 来表示; url.com/*,
###### 用xlrd包读取Excel文件 ```python import xlrd read = xlrd.open_workbook('/Users/lihuabing/Desktop/test.xlsx') sheet_name = read.sheet_names()[0] # 获取所有sheet s
Vcenter 6.7 安装到52%报错启动vpxd-svcs出现错误[](https://img-1251935913
###### DNS简介: DNS,Domain Name System,域名系统,用于Internet上域名和IP地址的相互映射,使得用户不用记忆主机IP地址,仅通过与之对应的域名就可以访问该主机。 ###### 关于BIND软件: [https://www.isc.org/downloads/bind/](http
##### 基础环境 1. Docker版本:最新版本 官方下载地址: [https://download.docker.com/linux/static/stable/x86_64/](https://download.docker.com/linux/static/stable/x86_64/) 2. 官方参考
使用`gunicorn+gevent+django+CONN_MAX_AGE`会导致数据库连接数飙升,直至占满。如果一定要利用协程的方式启动,该怎么解决这个问题呢?看了一下django源码,找到了问题的根源,写了一下解决办法。 ###### 1. 在项目的settings.py中配置数据库连接参数,使用自定义的数据库
##### 需要用到的类: `Main, Side, Fieldset, Row` ```python # adminx.py from xadmin.layout import Main, Side, Fieldset, Row class UinfoAdmin(object): form_layout