Re: [Vietnamese] - 4.6.0.5 - Hỗ trợ Google PageSpeed, Hỗ trợ re-config các chức năng Backup ...
PostPosted:14 Oct 2018 17:09
VPS SIMPLE
https://community.vpssim.vn/
Hơi ngoài lề nhưng vps pavietnam bác xài chưa, cùng giá tiền thì đăng ký 1 năm ở pa cấu hình gấp đôi làm em phân vân quá, dù cấu hình cao ko dùng hết nhưng vẫn thấy thích
Em thực hiện các bước sau:
# yum -y remove nginx
# mv /etc/yum.repos.d/nginx.repo /etc/yum.repos.d/nginx.repo .bak
# cp -r /etc/vpssim/menu/inc/nginx.init/nginx /etc/init.d/nginx
# cp -r /etc/vpssim/menu/inc/nginx.init/nginx.conf /etc/nginx/nginx.conf
# nginx -t
# yum -y install nginx-module-geoip
# mv /usr/share/GeoIP/GeoIP.dat /usr/share/GeoIP/GeoIP.dat.bak
# cd /usr/share/GeoIP/
# wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# gunzip GeoIP.dat.gz
# cd
# sed -i '1s/^/load_module\ "modules\/ngx_http_geoip_module.so";\n/' /etc/nginx/nginx.conf
nginx -t
service nginx start