上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: # ***********文件上传************* def fileupload(request): if request.method=='GET': return render(request,'fileupload.html') if request.method=='POST': 阅读全文
posted @ 2019-12-08 21:04 xuqidong 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,session 数据是存储到数据库中的。当然也可以将session数据存储到其他地方。可以通过设置SESSION_ENGINE来更改session的存储位置,这个可以配置为以下几种方案:1. django.contrib.sessions.backends.db :使用数据库。默认就是这 阅读全文
posted @ 2019-12-07 22:57 xuqidong 阅读(200) 评论(0) 推荐(0) 编辑
摘要: # f.seek # 文件内指针移动,只有t模式下的read(n),n代表的字符的个数 # 除此以外文件内指针的移动都是以字节为单位 # with open('a.txt',mode='rt',encoding='utf-8') as f: # msg=f.read(1) # print(msg) 阅读全文
posted @ 2019-11-26 22:54 xuqidong 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1. 镜像管理 1.1 获取镜像 docker search centos docker pull centos:6.9 docker pull centos:7.5.1804 docker pull nginx 1.2 查询镜像 docker images docker images -q doc 阅读全文
posted @ 2019-11-03 13:13 xuqidong 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 0、环境准备类: curl http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo wget -O /etc/yum.repos.d/epel.repo ht 阅读全文
posted @ 2019-11-03 13:05 xuqidong 阅读(111) 评论(0) 推荐(0) 编辑
摘要: auth组件 -auth是什么? -django内置的用户认证系统,可以快速的实现,登录,注销,修改密码.... -怎么用? -(1)先创建超级用户: -python3 manage.py createsuperuser -输入用户名,邮箱(可以不输入),密码,敲回车,这样就创建出一个超级用户 -也 阅读全文
posted @ 2019-10-31 01:02 xuqidong 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="/static/utils/bootstrap-3.3.7-dist/css/bootstrap.css"> <title>Title</title> <style> .head { height: 60px; ba 阅读全文
posted @ 2019-10-27 22:33 xuqidong 阅读(97) 评论(0) 推荐(0) 编辑
摘要: mysqldump -uroot -p123 -A --master-data=2 > /tmp/full1.sql 997 mysqldump -uroot -p123 -A > /tmp/full.sql 998 vim /tmp/full.sql 999 vimdiff /tmp/full.sql /tmp/full1.sql 1000 vim /tmp/full1.sql 1001 /et 阅读全文
posted @ 2019-10-25 15:08 xuqidong 阅读(114) 评论(0) 推荐(0) 编辑
摘要: yum install perl-DBD-MySQL -y 1005 rpm -ivh mha4mysql-node-0.56-0.el6.noarch.rpm 1006 mysql -uroot -p123 1007 ln -s /usr/local/mysql/bin/mysql /usr/bin/ 1008 rm /usr/bin/mysql 1009 ln -s /... 阅读全文
posted @ 2019-10-24 19:26 xuqidong 阅读(80) 评论(0) 推荐(0) 编辑
摘要: chown -R mysql:mysql /usr/local/mysql/data 一.MySQL版本选择的潜规则 5.6:GA 6-12个月 并且小版本是偶数版 5.7:GA 6-12个月 并且小版本是偶数版 5.7.17 以上版本,(MGR自带的高可用) 二.二进制安装MySQL 1.下载 [root@web01 ~]# wget https://downloads.mysql.com/ar 阅读全文
posted @ 2019-10-21 19:07 xuqidong 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页