Install VeryNginx on CentOS 6 64-bit to defend against DDOS attacks

Install VeryNginx on CentOS 6 64-bit to defend against DDOS attacks

VeryNginx is a powerful and human-friendly Nginx extension.
VeryNginx is developed based on lua_nginx_module(openrestry), which implements advanced firewall, access statistics and other functions. It is integrated and runs in Nginx, extending the functions of Nginx itself and providing a friendly Web interactive interface.

Here are the installation instructions :
Under SSH:
1. Remove the system's own Apache and PHP
yum remove httpd php

2. Install dependency packages
yum install -y gcc gcc-c++ make cmake autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel libaio readline-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel openssl openssl-devel libxslt-devel libicu-devel libevent-devel libtool libtool-ltdl bison gd-devel vim-enhanced pcre-devel zip unzip ntpdate sysstat patch bc expect rsync git lsof lrzsz

3. Install VeryNginx
wget https://github.com/alexazhou/VeryNginx/archive/master.zip
unzip master.zip
cd VeryNginx-master
python install.py install

4. Add nginx user:
useradd nginx

If port 80 is occupied, you can use the following command to close the program occupying port 80:
sudo fuser -k 80/tcp

5. Start/Stop/Restart Services

Start the service

/opt/verynginx/openresty/nginx/sbin/nginx

Stop service

/opt/verynginx/openresty/nginx/sbin/nginx -s stop

Restart the service

/opt/verynginx/openresty/nginx/sbin/nginx -s reload

6. Update VeryNginx / OpenResty

Update Verynginx

python install.py update verynginx

Updating OpenResty

python install.py update openresty

7. Online Management
http://{{your IP}}/VeryNginx/index.html
Username/Password: verynginx/verynginx

8. Others
VeryNginx configuration file: /opt/verynginx/verynginx/configs/config.json

VeryNginx official website : https://github.com/alexazhou/VeryNginx

<<:  wishosting: $5.99/month/6GB RAM/120GB hard disk/unlimited traffic/KVM/France

>>:  ZXhost 1GB RAM KVM VPS OVH France Simple Review

Recommend

TrentaHost: $21/year/512MB RAM/15GB SSD space/unlimited traffic/KVM/Dallas/UK

TrentaHost, an American hosting provider, now has...

Cloudflexy: $16/year/512MB memory/40GB space/unlimited traffic/KVM/Los Angeles

Cloudflexy is a Romanian hosting provider under I...

Beyotta Network: $40/month/8G memory/80GB space/4TB traffic/KVM/Singapore

Beyotta Network, a Singapore hosting provider, st...

In 2020, Double 11 and Black Friday promotions and submissions

This is the most cost-effective time to buy a hos...

XHOSTFIRE: $5/month/256MB memory/15GB space/1TB traffic/KVM/Russia

XHOSTFIRE, a Russian hosting provider, has a data...

$50/month/2G/500G/3TB dedicated server——Umbra Hosting

According to official information, Umbra Hosting ...