新建utils/exceptions.py from rest_framework.views import exception_handler from django.db import DatabaseError from rest_framework.response import Respo ...
分类:
编程语言 时间:
2020-06-20 11:11:43
阅读次数:
75
1、根文件系统rootfs制作jffs2.img镜像 Flash支持jffs2文件系统格式,所以需要使用此该rootfs制作jffs2文件系统镜像。 //使用工具 sudo apt-get install mtd-utils 操作步骤 mkdir rootfs //创建目录 sudo tar xzv ...
分类:
其他好文 时间:
2020-06-20 11:06:46
阅读次数:
87
十三、缓存 13.1 简介 每次查询都要连接数据库,这样的操作非常耗费资源,如果将一次查询的结果暂存在一个可以直接取到的地方【内存,即缓存】,当我们再次查询相同的数据时,就可以直接走缓存,不用再访问数据库。 什么是缓存 [ Cache ]? 存在内存中的临时数据。 将用户经常查询的数据放在缓存(内存 ...
分类:
其他好文 时间:
2020-06-19 22:49:56
阅读次数:
62
一、什么是文件系统? 文件系统是对一个存储设备上的数据和元数据进行组织的一种机制。文件系统是在一个磁盘(包括光盘、软盘、闪盘及其它存储设备)或分区上组织文件方式方法,常见文件系统如ext2、ext3、ext4、NTFS或fat、fat32等。文件系统格式组织存储文件或数据的方法,目的是易于查询和存取 ...
分类:
其他好文 时间:
2020-06-19 16:04:56
阅读次数:
83
使用存储库安装 首次安装Docker-ce之前,需要设置Docker存储库。便可以从存储库安装和更新Docker。 设置存储库 1.安装yum-utils软件包(提供yum-config-manager 实用程序)并设置稳定的存储库。 //1.安装yum-utils sudo yum install ...
分类:
其他好文 时间:
2020-06-19 12:11:03
阅读次数:
47
1.nfs安装部署 master\node上: yum install -y nfs-utils-* systemctl restart rpcbind systemctl restart nfs systemctl enable rpcbind systemctl enable nfs maste ...
分类:
其他好文 时间:
2020-06-19 11:46:36
阅读次数:
57
import React, {Component} from 'react'; import {Image, StyleSheet, Text, View} from 'react-native' import Swiper from 'react-native-swiper'; import To ...
分类:
其他好文 时间:
2020-06-18 22:03:52
阅读次数:
103
实现功能包括:用户列表,搜索,新建和编辑。用户数据:用户名,类型,有效期,备注。 一、从vue-element-admin复制文件: vue-admin-template\src\layout\components\Pagination文件夹 vue-admin-template\src\utils ...
分类:
其他好文 时间:
2020-06-18 01:41:36
阅读次数:
66
代码: using System; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using Utils; /** * 如何写个死循环,既不独占 ...
分类:
编程语言 时间:
2020-06-17 20:37:40
阅读次数:
53
Spring Boot 文件的上传下载 说真的,在 Spring Boot 实现文件下载,真的是方便到让我颤抖。Java 中实现文件上传可以用两个组件:CommonMultipartResolver 和 StandardServletMultipartResolver。 Spring Boot 在 ...
分类:
编程语言 时间:
2020-06-17 20:14:12
阅读次数:
52