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

kernelvps: $10/month/1GB RAM/20GB NVMe space/500GB bandwidth/DDOS/KVM/Singapore

kernelvps, an Indian hosting provider, mainly pro...

PerfectIP: $4.99/month/4GB memory/20GB SSD space/10TB traffic/KVM/Los Angeles

PerfectIP, which has been introduced several time...

ISPlicense: Selling ISPsystem, Plesk, DirectAdmin, Cpanel and other licenses

ISPlicense, a Russian merchant, was established i...

INIZ: $25/year/1GB memory/50GB space/1000G traffic/OpenVZ

INIZ has been introduced by Aiba before: https://...

okvz: $15/year/512MB RAM/20GB SSD space/1TB traffic/1Gbps/KVM/Los Angeles

okvz, a Chinese merchant, mainly provides KVM VPS...

EVL Gaming: $12/year/128MB/5GB/150GB/KVM/Phoenix

EVL Gaming, LLC is an American hosting company re...

Enotch Networks: IT service provider offering a full range of hosts

Enotch Networks, Inc provides virtual hosting, VP...

$15/year/2G space/40G traffic virtual host——LevelHosting

LevelHosting is a Canadian hosting company. Its d...