You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-21Lines changed: 24 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
<i>Runtime Edition</i>
10
10
<br/><br/>
11
11
12
-
12
+
13
13
<atitle="PM2 Downloads">
14
14
<imgsrc="https://img.shields.io/npm/dm/pm2"alt="Downloads per Month"/>
15
15
</a>
@@ -55,7 +55,7 @@ With NPM:
55
55
$ npm install pm2 -g
56
56
```
57
57
58
-
You can install Node.js easily with [NVM](https://riptutorial.com/node-js/example/4578/using-node-version-manager--nvm-) or [ASDF](https://blog.natterstefan.me/how-to-use-multiple-node-version-with-asdf)
58
+
You can install Node.js easily with [NVM](https://github.com/nvm-sh/nvm#installing-and-updating) or [ASDF](https://blog.natterstefan.me/how-to-use-multiple-node-version-with-asdf).
59
59
60
60
### Start an application
61
61
@@ -71,7 +71,7 @@ Your app is now daemonized, monitored and kept alive forever.
71
71
72
72
Once applications are started you can manage them easily:
[More about Process Management](https://pm2.keymetrics.io/docs/usage/process-management/)
104
103
105
104
### Cluster Mode: Node.js Load Balancing & Zero Downtime Reload
106
105
107
106
The Cluster mode is a special mode when starting a Node.js application, it starts multiple processes and load-balance HTTP/TCP/UDP queries between them. This increase overall performance (by a factor of x10 on 16 cores machines) and reliability (faster socket re-balancing in case of unhandled errors).
[More informations about how PM2 make clustering easy](https://pm2.keymetrics.io/docs/usage/cluster-mode/)
[Read More about the dedicated integration](https://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/)
142
139
140
+
### Host monitoring speedbar
141
+
142
+
PM2 allows to monitor your host/server vitals with a monitoring speedbar.
To enable log rotation install the following module
185
+
186
+
```bash
187
+
$ pm2 install pm2-logrotate
188
+
```
189
+
174
190
[More about log management](https://pm2.keymetrics.io/docs/usage/log-management/)
175
191
176
192
### Startup Scripts Generation
@@ -192,19 +208,6 @@ $ pm2 unstartup
192
208
193
209
[More about Startup Scripts Generation](https://pm2.keymetrics.io/docs/usage/startup/)
194
210
195
-
### PM2 Modules
196
-
197
-
PM2 embeds a simple and powerful module system. Installing a module is straightforward:
198
-
199
-
```bash
200
-
$ pm2 install <module_name>
201
-
```
202
-
203
-
Here are some PM2 compatible modules (standalone Node.js applications managed by PM2):
204
-
205
-
[**pm2-logrotate**](https://www.npmjs.com/package/pm2-logrotate) automatically rotate logs and limit logs size<br/>
206
-
[**pm2-server-monit**](https://www.npmjs.com/package/pm2-server-monit) monitor the current server with more than 20+ metrics and 8 actions<br/>
0 commit comments