上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: ###创建项目 1.创建的是django项目 2.使用的是虚拟环境 3.提前创建好一个应用 ###项目外全局配置 1.第一次使用一般不会勾选django语法支持,这里要勾选上 2.可以提前配置好html和python文件模板,比如固定要导入的插件和python头部注释段 3.补充 3.1 右键项目根 阅读全文
posted @ 2022-06-03 19:07 梵高de画笔 阅读(485) 评论(0) 推荐(0) 编辑
摘要: ####容器自动启动 - 创建容器时,未使用 --restart=always ,重启docker后,容器未能自动启动,有两个办法可以添加 - 1. docker 命令修改 | docker container update --restart=always 容器名字 - 2.直接改配置文件 | s 阅读全文
posted @ 2022-03-16 23:12 梵高de画笔 阅读(56) 评论(0) 推荐(0) 编辑
摘要: python -m pip install xonsh 阅读全文
posted @ 2022-03-05 22:22 梵高de画笔 阅读(15) 评论(0) 推荐(0) 编辑
摘要: document_root 是 root 的值 比如 /data/html/wordpress fastcgi 是location后边的值 比如 /index.php 阅读全文
posted @ 2022-02-26 18:56 梵高de画笔 阅读(65) 评论(0) 推荐(0) 编辑
摘要: [root@wg ~]# rpm -qa | grep lvm2 // 检查命令是否安装 lvm2-2.02.187-6.el7.x86_64 lvm2-libs-2.02.187-6.el7.x86_64 [root@wg ~]# lvmdiskscan // 查看磁盘和卷 [root@wg ~] 阅读全文
posted @ 2022-02-21 23:39 梵高de画笔 阅读(22) 评论(0) 推荐(0) 编辑
摘要: [root@wg ~]# cat /proc/cpuinfo | grep "processor" // cpu数量 [root@wg ~]# cat /proc/cpuinfo | grep "physical" 阅读全文
posted @ 2022-02-20 11:54 梵高de画笔 阅读(15) 评论(0) 推荐(0) 编辑
摘要: centos6和8已经停止维护,这篇主要处理6更新yum源 ####更新6yum [root@wg ~]# sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf [root@wg ~]# mv /etc/y 阅读全文
posted @ 2022-02-05 00:04 梵高de画笔 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 修改path的三种方式 ####方式1 [root@wg ~]# export PATH=/your/want/add/path:$PATH [root@wg ~]# echo $PATH - 临时有效; - 立即生效; - 换窗失效; - 仅对当前用户有效 ####方式2 [root@wg ~]# 阅读全文
posted @ 2022-02-04 01:23 梵高de画笔 阅读(202) 评论(0) 推荐(0) 编辑
摘要: ####基本使用 - 1.生成容器的时候,调用的是 entrypoint.sh 脚本 - 2.通过脚本信息得到相关启动信息: | mysqld -- 启动mysql服务 | MYSQL_ROOT_PASSWORD -- 设置root密码,必用;还有另外两个选项 | MYSQL_USER -- 添加其 阅读全文
posted @ 2022-02-03 04:50 梵高de画笔 阅读(58) 评论(0) 推荐(0) 编辑
摘要: linux需要备份的数据 - /root/目录 - /home/目录 - /var/spool/mail/目录 - /etc/目录 - 其他目录 安装服务的数据 - apache需要备份的数据 | 配置文件 | 网页主目录 | 日志文件 - mysql需要备份的数据 | 源码包安装的mysql: / 阅读全文
posted @ 2022-02-03 00:21 梵高de画笔 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页