'pm2-logrotate install on offline linux machine
I want to install pm2-logrotate on linux machine where the machine is not having internet connectivity
Solution 1:[1]
pm2 install pm2-logrotate-2.7.0.tgz
Solution 2:[2]
To make an offline installer, you need to make your own tar.gz
file.
First, you need to download the Source code (tar.gz)
from Pm2 GitHub
Extract the tar.gz
file and this will create a folder with the source inside
Rename the main folder (normally named pm2-logrotate-2.7.0
) to module
and create the pm2-logrotate-2.7.0.tar.gz
file again with the module
folder
The struct of the files inside of the tar.gz
will be something like:
module
|- .gitignore
|- CHANGELOG.md
|- README.md
|- app.js
|- node_modules
|- package-lock.json
|- package.json
|- pres
|- test
Then you can use the command pm2 install pm2-logrotate-2.7.0.tar.gz
without getting errors
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | onerinas |
Solution 2 | Zero |