Update README.md
This commit is contained in:
1 parent
0d1ae1fb85
commit
eacfc9ac2d
1 file changed
+12
-16
@@ -46,35 +46,31 @@ bash <(wget -qO- https://raw.githubusercontent.com/sefinek/UFW-AbuseIPDB-Reporte
|
|||||||
### Manually
|
### Manually
|
||||||
#### Node.js installation
|
#### Node.js installation
|
||||||
```bash
|
```bash
|
||||||
sudo apt install -y curl
|
sudo apt install -y curl && \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
|
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
|
||||||
sudo -E bash nodesource_setup.sh && sudo apt install -y nodejs
|
sudo apt install -y nodejs
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Git installation
|
#### Git installation
|
||||||
```bash
|
```bash
|
||||||
sudo add-apt-repository ppa:git-core/ppa
|
sudo add-apt-repository -y ppa:git-core/ppa && \
|
||||||
sudo apt update && sudo apt -y install git
|
sudo apt update && sudo apt install -y git
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Commands
|
#### Commands
|
||||||
```bash
|
```bash
|
||||||
sudo apt update && sudo apt upgrade
|
sudo apt update && sudo apt upgrade
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://github.com/sefinek/UFW-AbuseIPDB-Reporter.git --recurse-submodules && cd UFW-AbuseIPDB-Reporter
|
git clone --recurse-submodules https://github.com/sefinek/UFW-AbuseIPDB-Reporter.git
|
||||||
|
cd UFW-AbuseIPDB-Reporter
|
||||||
npm install
|
npm install
|
||||||
cp config.default.js config.js
|
cp config.default.js config.js
|
||||||
sudo chmod 644 /var/log/ufw.log
|
sudo chmod 644 /var/log/ufw.log
|
||||||
node .
|
npm install -g pm2
|
||||||
^C
|
sudo mkdir -p /var/log/ufw-abuseipdb /var/cache/sefinek
|
||||||
npm install pm2 -g
|
sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb /var/cache/sefinek
|
||||||
sudo mkdir -p /var/log/ufw-abuseipdb
|
pm2 start .
|
||||||
sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb
|
eval "$(pm2 startup | grep sudo)"
|
||||||
sudo mkdir -p /var/cache/sefinek
|
|
||||||
sudo chown -R "$USER":"$USER" /var/cache/sefinek
|
|
||||||
pm2 start
|
|
||||||
pm2 startup
|
|
||||||
[Paste the command generated by pm2 startup]
|
|
||||||
pm2 save
|
pm2 save
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user