more >>找个地方,记录点东西。
less is more
KeyWord: Linux, Python, Virtualenv, Nginx, Uwsgi, Postgresql, Redis pip
1 | //安装 pip |
1 | mkdir python343_tgz |
1 | zip –r x.zip /home/wwwroot/x //绝对地址的文件及文件夹进行压缩.以下给出压缩相对路径目录 |
1 | pip install -r requirements.txt |
1 | cd project_dir |
1 | sudo -u postgres psql |
1 | cd project_dir |
1 | ps -aux | grep uwsgi |
1 | vim /usr/lib/systemd/system/uwsgi_liang.service |
1 | apt-get update |
project_name.nginx.conf
1 | upstream project_sock { |
uwsgi_params
1 | uwsgi_param QUERY_STRING $query_string; |
1 | // 检查项目ngix的配置的配置文件是否ok |
1 | sudo apt-get install -y tcl # for test |
参考:
https://www.zybuluo.com/lonelinsky/note/413507
https://hmj1008.github.io/2017FF/04/13/linux下django常用部署配置/
http://www.ruanyifeng.com/blog/2014/03/server_setup.html #Linux服务器的初步配置流程
http://python.jobbole.com/81953/ 基于Django与Celery实现异步队列任务 Redis
https://lihz1990.gitbooks.io/transoflptg/content/ linux 性能
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true