Loading

摘要: 1. 如何更换pip源为国内源? 解决:https://blog.csdn.net/yuzaipiaofei/article/details/80891108 2.pyenv安装时出现 No module named virtualenvwrapper https://blog.csdn.net/m 阅读全文
posted @ 2019-01-18 15:27 wsongl 阅读(109) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/kadwf123/article/details/80809004 yum install zlib zlib-devel -y ./config shared zlibmakemake installmv /usr/bin/openssl /usr/bi 阅读全文
posted @ 2019-01-14 16:42 wsongl 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 常见错误:https://blog.whsir.com/post-392.html 以下操作都是以188.5为模板机器,同步到其他机器上。在对应的机器上执行 #这里会把188.5服务器上的/servyouapp目录文件,拷贝到本地/servyouapp/servyouapp/下: rsync -vz 阅读全文
posted @ 2019-01-14 16:41 wsongl 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 本地引用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2018-12-16 10:47 wsongl 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 配置示例 具体说明 Static是不变的,形成网站的核心部件,如 CSS文件,JS文件,背景图片等; Media是变动的,由用户定义的文件,如 用户头像, 用户上传的图片或视频等; static 1. STATIC_ROOT说明:STATIC_ROOT 是在部署静态文件时(pyhton manage 阅读全文
posted @ 2018-12-10 15:45 wsongl 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: 函数装饰器: 类装饰器: 阅读全文
posted @ 2018-12-09 21:29 wsongl 阅读(492) 评论(0) 推荐(0) 编辑
摘要: redis下载地址 redis.conf文件参数 redis模式讲解 ( 讲的很棒 ) 哨兵投票机制 一 Redis安装 1.上传文件把文件 redis-5.0.0.tar.gz 上传到服务器的/app目录下。 2.创建用户 [root@wsongl-01 /]# groupadd redis[ro 阅读全文
posted @ 2018-11-15 17:26 wsongl 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 安装nginx 安装uwsgi 环境路径: 用uwsgi命令启动Django: 参数说明: --http 这个就和runserver一样指定IP 端口 --file 这个文件就里有一个反射,如果你在调用他的时候没有指定Web Server就使用默认的 -- static 做一个映射,指定静态文件 此 阅读全文
posted @ 2018-10-28 21:30 wsongl 阅读(338) 评论(0) 推荐(0) 编辑
摘要: log_format main '{"logtime": "$time_local", ' '"client_ip": "$remote_addr", ' '"remote_user": "$remote_user", ' '"http_referer": "$http_referer", ' '" 阅读全文
posted @ 2018-09-19 13:42 wsongl 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 参考来源:https://www.cnblogs.com/fansik/p/6952453.html https://www.cnblogs.com/hanyinglong/p/5141504.html 一、主配置段1、正常运行必备的配置#运行用户和组,组身份可以省略user nginx nginx 阅读全文
posted @ 2018-09-18 16:54 wsongl 阅读(6937) 评论(0) 推荐(0) 编辑