上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: 一对多,在多的class 中创建 ForeignKey (外键) class Publisher(models.Model): name = models.CharField(max_length=32, verbose_name='出版社名称') def __str__(self): return 阅读全文
posted @ 2021-08-09 15:37 Star-Hitian 阅读(59) 评论(0) 推荐(0)
摘要: 基础环境 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # free -m total used free shared buff/cache available Mem: 7566 493 1663 8 5409 67 阅读全文
posted @ 2021-08-09 14:22 Star-Hitian 阅读(198) 评论(0) 推荐(0)
摘要: # 查看分区情况 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom xvda 202:0 0 100G 0 disk ├─xvda1 202:1 0 500M 0 part /boot └─xvda2 202 阅读全文
posted @ 2021-08-09 11:22 Star-Hitian 阅读(59) 评论(0) 推荐(0)
摘要: linux上,在安装系统之后,可否创建分区并且在不重新启动机器的情况下系统能够识别这些分区? 解决方法: 你可以使用一个叫做partprobe的工具。它包含在parted的rpm软件包中。在Red Hat Enterprise Linux 3上他的版本是parted-1.6。 partprobe 是 阅读全文
posted @ 2021-08-09 10:57 Star-Hitian 阅读(257) 评论(0) 推荐(0)
摘要: Docker install 各平台参考链接:https://docs.docker.com/engine/install/ Docker Compose install 各平台参考链接:https://docs.docker.com/compose/install/ 阅读全文
posted @ 2021-08-09 10:30 Star-Hitian 阅读(42) 评论(0) 推荐(0)
摘要: 参考链接:https://www.jetbrains.com/help/pycharm/using-live-templates.html 阅读全文
posted @ 2021-08-04 17:45 Star-Hitian 阅读(76) 评论(0) 推荐(0)
摘要: 具体操作 # 基础环境 # 旧jenkins # cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) # jenkins 家目录及配置 # ls /home/jenkins-master/ backup jenkins jenki 阅读全文
posted @ 2021-08-03 16:57 Star-Hitian 阅读(290) 评论(0) 推荐(0)
摘要: 安装 # pip install zappa # 备注如果遇到一些坑,可以按照官方文档安装依赖 地址:https://github.com/zappa/Zappa#template 使用 # 初始化 zappa init #初始化文件配置信息,详细配置参阅链接:https://github.com/ 阅读全文
posted @ 2021-08-03 12:08 Star-Hitian 阅读(102) 评论(0) 推荐(0)
摘要: app1/views.py 1 from django.shortcuts import render, redirect, HttpResponse 2 from django.http import StreamingHttpResponse, FileResponse 3 import jso 阅读全文
posted @ 2021-08-03 11:19 Star-Hitian 阅读(1006) 评论(0) 推荐(0)
摘要: Confluence 迁移 由于我新服务器和老服务器的配置几乎一样,所以就直接开干了。,,,整完也是可以正常启动的 步骤一 # 拷贝旧Confluence上 /var/atlassian/ 文件夹下的数据到新服务器上 rsync -artvz -e 'ssh' /var/atlassian/ aws 阅读全文
posted @ 2021-07-29 18:54 Star-Hitian 阅读(457) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页