首页 > 未分类 > 一个flask开发的开源单机简单运维平台

一个flask开发的开源单机简单运维平台

2015年5月9日

一个flask开发的开源单机简单运维平台

http://xiaorui.cc/2014/05/15/%e4%b8%80%e4%b8%aaflask%e5%bc%80%e5%8f%91%e7%9a%84%e5%bc%80%e6%ba%90%e5%8d%95%e6%9c%ba%e7%ae%80%e5%8d%95%e8%bf%90%e7%bb%b4%e5%b9%b3%e5%8f%b0/

 

一个flask开发的开源单机简单运维平台 | 峰云就她了

psdash是一个基于flask开发的,一个相当简单的单页面单机器的运维平台,安装也是相当的简单,

Installation using pip:
pip install psdash

Since pip 1.5.1 you are forced to add –allow-externals argparse since the latest argparse is hosted on google code.

Installation from source:
python setup.py install

Starting psdash:
psdash –log /var/log/myapp.log –log /var/log/mydb.log

Available command-line arguments:

usage: psdash [-h] [-l path] [-b host] [-p port] [-d]

psdash 0.3.0 – system information web dashboard

optional arguments:
  -h, –help            show this help message and exit
  -l path, –log path   log files to make available for psdash. This option
                        can be used multiple times.
  -b host, –bind host  host to bind to. Defaults to 0.0.0.0 (all interfaces).
  -p port, –port port  port to listen on. Defaults to 5000.
  -d, –debug           enables debug mode.

 

一个flask开发的开源单机简单运维平台 | 峰云就她了

20140515234324_84561

 

分类: 未分类 标签:
本文的评论功能被关闭了.