2018年4月3日

Python 部署 flask 用uwsgi和nginx

摘要: 安装uwsgi nginx 具体方法请百度 1.在项目目录下建立.ini文件 xad_uwsgi.ini 2配置nginx文件 在此路径下建立对应文件如果没有请自行创建 xadconf.test.com为二级域名 /etc/nginx/sites-enabled/xadconf.test.com 3 阅读全文

posted @ 2018-04-03 19:11 星河赵 阅读(435) 评论(0) 推荐(0)

[Python] 利用commands模块执行Linux shell命令

摘要: 用Python写运维脚本时,经常需要执行linux shell的命令,Python中的commands模块专门用于调用Linux shell命令,并返回状态和结果,下面是commands模块的3个主要函数: 1. commands.getoutput('shell command') 执行shell 阅读全文

posted @ 2018-04-03 11:48 星河赵 阅读(5158) 评论(0) 推荐(0)

Mac Terminal菜鸟篇之使用unrar解压rar文件

摘要: 在Mac上的归档工具不能够解压rar文件,这时可以使用终端中的unrar来解决问题。 步骤如下: 1.使用Homebrew安装unrar(有关Homebrew的安装和使用见Homebrew) [plain] view plain copy $ brew install unrar ==> Downl 阅读全文

posted @ 2018-04-03 09:52 星河赵 阅读(468) 评论(0) 推荐(0)

导航