From 18a5db05967fa290508630f13a7af76cef11c912 Mon Sep 17 00:00:00 2001 From: Tjatse Date: Tue, 16 Dec 2014 18:06:33 +0800 Subject: [PATCH] fix typo --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index dbabc61..92dc023 100644 --- a/README.md +++ b/README.md @@ -28,13 +28,13 @@ An elegant web interface for Unitech/PM2. # Installation ``` -$ npm install -g PM2-gui +$ npm install -g pm2-gui ``` # CLI ``` - Usage: PM2-gui [cmd] [options] + Usage: pm2-gui [cmd] [options] Commands: @@ -75,24 +75,24 @@ $ npm install -g PM2-gui { "refresh": 3000 "manipulation": true - "PM2": "~/.PM2" + "pm2": "~/.pm2" } ``` - **refresh** The heartbeat duration of monitor (backend), `5000` by default. - **manupulation** A value indicates whether the client has permission to restart/stop processes, `true` by default. -- **PM2** Root directory of Unitech/PM2, `~/.PM2` by default. +- **PM2** Root directory of Unitech/PM2, `~/.pm2` by default. ### Set Config Usage ```bash -$ PM2-gui set +$ pm2-gui set ``` Example ```bash -$ PM2-gui set refresh 2000 +$ pm2-gui set refresh 2000 ``` Above command will set `refresh` to two second. @@ -101,12 +101,12 @@ Above command will set `refresh` to two second. ### Remove Config Usage ```bash -$ PM2-gui rm +$ pm2-gui rm ``` Example ```bash -$ PM2-gui rm refresh +$ pm2-gui rm refresh ``` Above command will remove `refresh` config and it will be set to `5000` by default. @@ -115,12 +115,12 @@ Above command will remove `refresh` config and it will be set to `5000` by defau # Feature - All the heartbeats (no matter **monitor** or **tail (logs)**) are automatic destroyed. -- The `PM2` processes are watched by a FSWatcher ([chokidar](https://www.npmjs.org/package/chokidar)), but not manually polling. -- Communicated with `PM2` through **RPC** socket directly, but not `PM2` programmatic API and no more **sub/sub-emitter** bullshit (consumes memory and CPU usage). +- The `PM2` processes are watched by a subscribed emitter. +- Communicated with `PM2` through **RPC** socket directly. - Socket.io between client and server. - Monitor CPU and Memory usage of server in a real-time. - Monitor `PM2` processes in a real-time. -- Supports: process memory monitor, PM2 restart/stop. +- PM2 restart/stop/delete. - Supports [ANSI color codes](#tail_logs) by [ansi-html](https://github.com/Tjatse/ansi-html).