fix typo
This commit is contained in:
parent
67a75196f1
commit
18a5db0596
22
README.md
22
README.md
|
|
@ -28,13 +28,13 @@ An elegant web interface for Unitech/PM2.
|
|||
<a name="ins" />
|
||||
# Installation
|
||||
```
|
||||
$ npm install -g PM2-gui
|
||||
$ npm install -g pm2-gui
|
||||
```
|
||||
|
||||
<a name="cli" />
|
||||
# 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.
|
||||
|
||||
<a name="cli_conf_set">
|
||||
### Set Config
|
||||
Usage
|
||||
```bash
|
||||
$ PM2-gui set <key> <value>
|
||||
$ pm2-gui set <key> <value>
|
||||
```
|
||||
|
||||
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 <key>
|
||||
$ pm2-gui rm <key>
|
||||
```
|
||||
|
||||
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
|
|||
<a name="feats" />
|
||||
# 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).
|
||||
|
||||
<a name="cauts" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue