上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: 1. rpm Red Hat Package Manger(红帽软件包管理工具) 无法自己解决依赖性关系 安装卸载软件包 https://www.cnblogs.com/roland1982/p/3763654.html 2. yum 可以解决依赖关系,前提是需要提前指定依赖关系 一台机器上只能一个 阅读全文
posted @ 2020-05-30 13:47 10132714 阅读(129) 评论(0) 推荐(0)
摘要: 1. 文件系统从根开始,“/” 2. 文件名称区分大小写 3. 隐藏文件以“.”开头 4. 路径分隔符为“/” 5. 文件命名规范 1. 文件字符最长为255个字符 2. 包括路径在内文件名称最长为4095个字符 3. 颜色表示 1. 蓝色:文件夹 2. 绿色:可执行文件 3. 红色:压缩文件 4. 阅读全文
posted @ 2020-05-29 19:59 10132714 阅读(162) 评论(0) 推荐(0)
摘要: 1. root用户 1. 是一个特殊的管理账号,也称超级管理员 2. root用户对系统有完全控制的权限 3. 在工作中,如果没有特殊的必要,尽量不要用root 4. root用户一般在运维人员手里,开发没有 2. 终端分类 1. 设备终端 2. 物理终端 3. 虚拟终端 CTRL+ALT+(f1- 阅读全文
posted @ 2020-05-29 15:20 10132714 阅读(185) 评论(0) 推荐(0)
摘要: 1. swapon -s # 查看内存信息 2. mkswap /dev/sdb8 # 将sdb8分区添加作为另一个内存 3. swapon -a /dev/sdb8 # 在2的基础上,激活sdb8作为内存,此时查看内存可以看到这个信息 4. swapoff /dev/sdb8 # 关闭sdb8内存 阅读全文
posted @ 2020-05-29 11:01 10132714 阅读(117) 评论(0) 推荐(0)
摘要: 1. 软连接:快捷方式 ln -s /b/a.txt /c/aa.txt # 在c里建立一个a.txt的快捷方式 A是B的软链接(A和B都是文件名),A的目录项中的inode节点号与B的目录项中的inode节点号不相同,A和B指向的是两个不同的inode,继而指向两块不同的数据块。但是A的数据块中存 阅读全文
posted @ 2020-05-28 22:05 10132714 阅读(141) 评论(0) 推荐(0)
摘要: > 覆盖 >> 追加 参考网址:https://www.cnblogs.com/xiaoyuanqujing/articles/11840785.html 1. vi > vim == vi modify # 使用vim需要安装,以下只写vim 2. vim 文件名 # 进入到文件内 3. 在2的基 阅读全文
posted @ 2020-05-28 16:44 10132714 阅读(156) 评论(0) 推荐(0)
摘要: tar 归档,打包 1. tar cf 打包后的名字.tar 要打包的文件1 要打包的文件2 # cf = create filename,也可以用cvf, v表示打包的详细过程 2. tar -tf 文件名 # 查看打包后的文件内的内容,可写成 tvf 3. tar -xf 文件名 -C 要解包到 阅读全文
posted @ 2020-05-28 16:20 10132714 阅读(335) 评论(0) 推荐(0)
摘要: 1. id 用户名 # 查看用户的id号,组号2. 用户id号1000以前是系统用户号,1000以后是自己添加的用户号3. useradd 用户名 # 添加新的用户4. 在/etc/passwd文件中每一行记录代表一条用户信息,该记录包含七段 1. 例: Jack:x: uid: 组id:用户描述信 阅读全文
posted @ 2020-05-28 09:14 10132714 阅读(247) 评论(0) 推荐(0)
摘要: 参考网址:https://www.cnblogs.com/gaosai/p/10322924.html https://www.bilibili.com/video/BV1cJ411U7kQ?p=501 阅读全文
posted @ 2020-05-27 20:44 10132714 阅读(123) 评论(0) 推荐(0)
摘要: 1. windows: --> cd # change directory --> D: # 进入d盘 --> cd file1\file2 # 切换到指定目录 --> cd .. # 上一级目录 --> cd - # 切换到上一次所在目录 --> dir # 查看当前文件夹下的所有内容 --> i 阅读全文
posted @ 2020-05-24 21:10 10132714 阅读(1037) 评论(0) 推荐(0)
摘要: 参考:https://www.jianshu.com/p/b23c77852e33 阅读全文
posted @ 2020-05-23 10:36 10132714 阅读(130) 评论(0) 推荐(0)
摘要: 参考地址:https://www.cnblogs.com/linhaifeng/p/6523843.html 阅读全文
posted @ 2020-05-22 17:01 10132714 阅读(114) 评论(0) 推荐(0)
摘要: 效果 代码 from django.contrib import adminfrom rbac.models import UserInfo, Permission, Role# Register your models here.# 自定制一个权限类的adminclass PermissionAd 阅读全文
posted @ 2020-05-21 20:07 10132714 阅读(460) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-21 10:34 10132714 阅读(0) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-15 12:02 10132714 阅读(0) 评论(0) 推荐(0)
摘要: 参考地址:https://www.cnblogs.com/DI-DIAO/p/8978780.html https://www.cnblogs.com/WiseAdministrator/articles/10975786.html https://www.cnblogs.com/clschao/a 阅读全文
posted @ 2020-05-14 09:18 10132714 阅读(103) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-13 11:44 10132714 阅读(0) 评论(0) 推荐(0)
摘要: import refrom django.core.exceptions import ValidationErrordef mobile_validate(value): mobile_re = re.compile(r'^(13[0-9]|15[012356789]|17[678]|18[0-9 阅读全文
posted @ 2020-05-12 15:36 10132714 阅读(703) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-11 14:34 10132714 阅读(0) 评论(0) 推荐(0)
摘要: content-type指明了数据传输之前的编码格式,常用的有三种:urlencoded(默认),json,form-data(传输文件) Django中request.POST只解析urlencoded格式的数据 Django中的request.body中包含有所有请求体的内容,想要获得请求体的内 阅读全文
posted @ 2020-05-11 11:12 10132714 阅读(1209) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页