Install File CentOS7
Install File CentOS7
cd /usr/src
wget -4 http://sibsoft.net/xvideosharing/nginx-upload-progress-module-
master.zip;unzip nginx-upload-progress-module-master.zip;rm -f nginx-upload-
progress-module-master.zip
wget -4 http://sibsoft.net/xvideosharing/nginx-upload-module-2018.zip;unzip nginx-
upload-module-2018.zip;rm -f nginx-upload-module-2018.zip
wget -4 http://sibsoft.net/xvideosharing/nginx-vod-module-1.23.tar.gz;tar -xf
nginx-vod-module-1.23.tar.gz;rm -f nginx-vod-module-1.23.tar.gz
wget -4 http://nginx.org/download/nginx-1.15.0.tar.gz;tar -xzf nginx-
1.15.0.tar.gz;rm -f nginx-1.15.0.tar.gz;cd nginx-1.15.0
./configure --with-http_stub_status_module --with-http_mp4_module
--add-module=../nginx-upload-module-master --add-module=../nginx-upload-progress-
module-master --add-module=../nginx-vod-module-1.23 --with-file-aio --with-threads
--with-http_ssl_module --with-http_v2_module
make && make install
echo "/usr/local/nginx/sbin/nginx" >> /etc/rc.local;chmod +x /etc/rc.d/rc.local
Start NGINX:
/usr/local/nginx/sbin/nginx
Add Host / Server through web site, Save Settings and restart daemons+nginx on
fileserver:
killall enc.pl;killall transfer.pl;killall url_upload.pl
killall nginx;sleep 1;/usr/local/nginx/sbin/nginx
Configure crontabs:
(crontab -l ; echo "*/10 * * * * cd /var/www/cgi-bin;./atop.pl >/dev/null
2>&1") | crontab -
(crontab -l ; echo "*/3 * * * * cd /var/www/cgi-bin;./nginx_logs.sh >/dev/null
2>&1") | crontab -
(crontab -l ; echo "5 0 * * * ntpdate pool.ntp.org >/dev/null 2>&1") |
crontab -