MHDDoS: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
* pip install -r requirements.txt
 
* pip install -r requirements.txt
  
= Testen und Visualisieren auf Nginx =
+
= Testen und Visualisieren auf nginx =
  
 
Getestet auf einem Debian
 
Getestet auf einem Debian
  
== Nginx installieren ==
+
== nginx installieren ==
  
 
* '''systemctl disable –now apache2'''
 
* '''systemctl disable –now apache2'''
Zeile 32: Zeile 32:
 
  Feb 27 09:59:45 debian systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
 
  Feb 27 09:59:45 debian systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
 
  Feb 27 09:59:45 debian systemd[1]: Started A high performance web server and a reverse proxy server.
 
  Feb 27 09:59:45 debian systemd[1]: Started A high performance web server and a reverse proxy server.
 +
 +
== nginx-UI ==
 +
 +
* ein Programm, um die Auslastung von nginx anzuzeigen
 +
* Läuft auf Port 9000
 +
 +
[[Bild:nginx-ui.png|1500px]]
 +
 +
* '''bash <(curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install'''
 +
* '''systemctl status nginx-ui'''
 +
 +
● nginx-ui.service - Yet another WebUI for Nginx
 +
      Loaded: loaded (/etc/systemd/system/nginx-ui.service; enabled; vendor preset: enabled)
 +
      Active: active (running) since Mon 2023-02-27 09:40:38 CET; 24min ago
 +
        Docs: https://github.com/0xJacky/nginx-ui
 +
    Main PID: 8072 (nginx-ui)
 +
      Tasks: 15 (limit: 2337)
 +
      Memory: 25.9M
 +
        CPU: 2.404s
 +
      CGroup: /system.slice/nginx-ui.service
 +
              ├─8072 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
 +
              └─8091 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
  
 
= Webseite =
 
= Webseite =
  
 
* https://github.com/MatrixTM/MHDDoS
 
* https://github.com/MatrixTM/MHDDoS

Version vom 27. Februar 2023, 09:09 Uhr

Installation

Testen und Visualisieren auf nginx

Getestet auf einem Debian

nginx installieren

  • systemctl disable –now apache2
  • apt install nginx
  • systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-02-27 09:59:45 CET; 1min 49s ago
       Docs: man:nginx(8)
    Process: 14589 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 14590 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 14591 (nginx)
      Tasks: 2 (limit: 2337)
     Memory: 2.5M
        CPU: 20ms
     CGroup: /system.slice/nginx.service
             ├─14591 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             └─14592 nginx: worker process

Feb 27 09:59:45 debian systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 27 09:59:45 debian systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Feb 27 09:59:45 debian systemd[1]: Started A high performance web server and a reverse proxy server.

nginx-UI

  • ein Programm, um die Auslastung von nginx anzuzeigen
  • Läuft auf Port 9000

Nginx-ui.png

● nginx-ui.service - Yet another WebUI for Nginx
     Loaded: loaded (/etc/systemd/system/nginx-ui.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-02-27 09:40:38 CET; 24min ago
       Docs: https://github.com/0xJacky/nginx-ui
   Main PID: 8072 (nginx-ui)
      Tasks: 15 (limit: 2337)
     Memory: 25.9M
        CPU: 2.404s
     CGroup: /system.slice/nginx-ui.service
             ├─8072 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
             └─8091 /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini

Webseite