自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 django表单form的属性及is_valid验证流程

django表单form的CharField属性username = forms.CharField(label='',max_length=128,widget=forms.TextInput({'placeholder':u'用户名..',}))password = forms.CharField(label='',max_length=256, widget=forms.Passwor...

2019-06-29 17:14:44 3206

原创 jenkins配置节点slave

jenkins配置节点slave配置凭据从节点key配置配置从节点配置凭据1.添加凭据2.选择SSH Username with private key。通过ssh登陆在私key中填入slave用户Jenkins的私钥保存该凭据。从节点key配置参考:https://blog.csdn.net/weixin_43819222/article/details/8902364...

2019-06-21 16:53:43 252

原创 报错解决:'gbk' codec can't encode character u'\xc3' in position 0: illegal multibyte sequence

报错解决:'gbk' codec can't encode character u'\xc3' in position 0: illegal multibyte sequence当python解码时出现报错illegal multibyte sequencejson.dumps(s, indent = 4,cls = FormatEncoder, ensure_ascii = False)...

2019-06-21 09:21:13 6660 1

转载 报错解决:src/pyodbc.h:45:20: fatal error: Python.h: No such file or directory

报错解决:src/pyodbc.h:45:20: fatal error: Python.h: No such file or directory解决方法yun install python-devel依赖关系:

2019-06-19 16:42:48 3283

原创 gcc: error trying to exec 'cc1plus': execvp: No such file or directory

报错解决:gcc: error trying to exec 'cc1plus': execvp: No such file or directory报错内容:解决方法:yum install gcc-c++

2019-06-19 16:41:02 11259

原创 python中静态函数,对象函数和类函数

python中cls和self区别调用类调用属性和函数调用类class A(object): a = 'a' @staticmethod def func1(i): print('hello', i) def func2(self, i): print('hello', i) @classmethod d...

2019-06-15 09:25:57 1247

原创 docker搭建wekan及注册备份维护

docker搭建wekan安装github地址:https://github.com/wekan/wekan-mongodb安装1.安装docker-compose请看:https://blog.csdn.net/weixin_43819222/article/details/904940832.克隆仓库git clone https://github.com/wekan/weka...

2019-06-07 23:05:26 2880

原创 Linux用户组免密sudo提权

Linux用户组免密sudo提权创建用户组及免密权限配置ssh.ssh文件权限创建用户组及免密权限创建用户组duanyiwen,指定gid为1000groupadd -g 1000 duanyiwen将用户dyiwen加入duanyiwen用户组usermod -g duanyiwen dyiwen或gpasswd -a dyiwen duanyiwenid查看用户的组信息...

2019-06-06 19:49:39 785

原创 jenkins:解决root无法su到jenkins用户

jenkins:解决root无法su到jenkins用户yum安装jenkins后root无法su到jenkins用户cat /etc/passwd发jenkins用户后被yum安装设置为了/bin/falsesudo vim /etc/passwd改为/bin/bash再次su jenkins发现用户变为了-bash-4.1#在该用户下编辑环境变量vim ~/.bash_pr...

2019-06-06 09:04:44 3519

nginx镜像配置包

nginx,docker快速部署包

2019-02-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除