How To Install Nginx on CentOS 7, Nginx install sinhala, nginx, centos7 nginx tutorial nginx vs apache nginx reverse proxy nginx proxy_pass nginx load balancing nginx download nginx docker nginx install ubuntu nginx server nginx proxy_pass example nginx nginx amplify nginx add_header nginx access log nginx alias nginx authentication nginx autoindex nginx access-control-allow-origin nginx api gateway nginx alpine nginx apache a+ nginx ssl nginx a duplicate default server nginx a/b testing nginx a+ ssl labs nginx a record nginx a practical guide nginx a apache nginx a single http/https server nginx a+ rating nginx a virus nginx bad gateway nginx basic auth nginx block ip nginx brotli nginx browser caching nginx block user agent nginx book nginx break nginx basic config nginx best practices nginx b nginx и php nginx configuration nginx change port nginx cache nginx config location nginx conf nginx client_max_body_size nginx cors nginx configuration file nginx check config nginx cache control nginx c module nginx c cgi nginx c program nginx c fastcgi example nginx c fastcgi nginx c plugin nginx c compiler not found nginx c code nginx cpanel nginx c sharp nginx default config nginx documentation nginx default_server nginx dockerfile nginx default nginx docker image nginx default server nginx django nginx d state conf.d nginx init.d nginx logrotate.d nginx d-push nginx init.d nginx centos init.d nginx restart init.d nginx ubuntu init.d nginx centos 7 rsyslog.d nginx nginx error log nginx error nginx enable site nginx expires nginx error_page nginx error_log nginx environment variables nginx enable gzip nginx etag nginx error page nginx e request filename nginx e-mail send nginx e laravel nginx e php apache e nginx juntos oque e nginx kakvo e nginx owncloud on nginx nginx and php centos nginx forbidden nginx for windows nginx file upload size nginx forward proxy nginx fastcgi nginx force https nginx flask nginx free nginx follow symlinks nginx file not found nginx f/oss nginx f request filename nginx -if file nginx gzip nginx github nginx gunicorn nginx gateway timeout nginx gzip compression nginx geoip nginx gui nginx getting started nginx geo nginx golang g nginx upstream nginx g daemon off nginx gwan g-wan vs nginx cmd nginx g daemon off g-wan vs nginx vs apache gwan nginx lighttpd g nginx rewrite nginx https nginx https redirect nginx http 2 nginx htaccess nginx htpasswd nginx health check nginx host not found in upstream nginx hsts nginx https proxy nginx http auth nginx h264 module nginx h.265 nginx h264 nginx.h sha.h nginx sys/filio.h nginx md5.h linux nginx install nginx install centos nginx if nginx ingress controller nginx include nginx if else nginx index nginx ingress nginx ipv6 nginx i apache nginx i/o nginx i php nginx i phpmyadmin nginx i python nginx i/o timeout i hate nginx htaccess i nginx nginx i-mscp i-doit nginx nginx jwt nginx java nginx javascript nginx jenkins nginx json nginx jobs nginx json log nginx jira nginx jetty nginx java module nginx j_spring_security_check nginx j_security_check nginx keepalive_timeout nginx keepalive nginx kubernetes nginx kerberos nginx kibana nginx kubernetes ingress nginx kong nginx keepalived nginx keepalive upstream nginx kafka nginx logs nginx latest version nginx location nginx letsencrypt nginx log format nginx lua nginx listen nginx log location nginx location root nginx microservices nginx map nginx multiple server_name nginx modules nginx max upload size nginx mac nginx multiple locations nginx monitoring nginx multiple sites nginx modsecurity nginx nodejs nginx nested location nginx no resolver defined to resolve nginx no input file specified nginx no events section in configuration nginx no cache nginx named location nginx not working nginx not starting nginx nodejs reverse proxy nginx content_length n n.ybyu nginx nginx open source nginx on windows nginx oauth2 nginx or apache nginx on mac nginx on ubuntu nginx optimization nginx openssl nginx options nginx openresty nginx o'reilly nginx o'reilly pdf nginx o_direct o'reilly's new nginx book nginx o que é nginx o apache nginx o que é isso o que nginx instalando o nginx configurando o nginx nginx proxy nginx plus nginx proxy redirect nginx plus pricing nginx pdf nginx php nginx php-fpm nginx python nginx p nginx p option nginx arg_ nginxcp nginx quic nginx query string nginx queue nginx quick start nginx query_string nginx query parameters nginx quit nginx qnap nginx queue requests nginx quora nginx q=$uri$args nginx q variable nginx restart nginx reverse proxy example nginx restart ubuntu nginx reload nginx rtmp nginx rewrite nginx request entity too large nginx redirect http to https nginx redirect nginx request_body nginx r server r shiny nginx charset koi8-r nginx nginx $response.header nginx кеширование sudo-chown-r-nginx nginx-at-documentroot-not nginx ssl nginx sites-enabled nginx status nginx server_name nginx subdomain nginx serve static files nginx start nginx ssl certificate nginx stop nginx s reload nginx s-maxage nginx s nginx s stop nginx s quit nginx s start nginx $arg_ nginx s.r.o nginx s reopen nginx try_files nginx timeout nginx test config nginx tcp proxy nginx tls nginx timeout increase nginx tls 1.3 nginx too many open files nginx tomcat nginx t nginx t-shirt nginx t option uintptr_t nginx off_t nginx ngx_str_t nginx t found nginx nginx upstream nginx url rewrite nginx unit nginx ubuntu nginx uwsgi nginx user nginx upstream timed out nginx upload limit nginx upstream timeout nginx uwsgi flask nginx u_char nginx virtual host nginx variables nginx version nginx vs haproxy nginx vs nginx plus nginx vs node nginx vs tomcat nginx vulnerabilities nginx version check nginx v node vs nginx nginx vs netty node.js vs nginx ajenti v nginx lighttpd vs nginx gunicorn vs nginx nginx web server nginx windows nginx wiki nginx websocket nginx wso2 api manager nginx wordpress nginx worker_connections nginx waf nginx wsgi nginx worker processes rewrite www nginx nginx w telefonie htaccess na nginx nginx x-forwarded-for nginx x-frame-options nginx x-forwarded-proto nginx x-real-ip nginx x-frame-options allow-from nginx x-forwarded-host nginx x-accel-redirect nginx x-xss-protection nginx x-forwarded-port nginx xampp x-nginx-proxy x-nginx-proxy header x-nginx-proxy true nginx x-sendfile nginx yum repo nginx yum nginx youtube nginx yaml nginx yum install nginx yii2 nginx yocto nginx your connection is not private nginx yii nginx yubikey nginx y apache nginx y apache juntos nginx and php nginx y nodejs nginx y django nginx y wordpress nginx y node instalar apache y nginx diferencia apache y nginx varnish vs nginx nginx zone nginx zabbix nginx zero downtime nginx zookeeper nginx zipkin nginx zip nginx zone size nginx zuul nginx zeromq nginx zlib nginx z-push z-push nginx config z-push dovecot nginx nginx z-push alias apache na nginx nginx i htaccess nginx 0.0.0.0 nginx 0.5.6 nginx 000 nginx 009 nginx/0.7.67 nginx/0.8.53 nginx/0.8.55 nginx 0.7.67 exploit nginx/0.8.20 nginx 0.7.65 exploit $0 nginx expires 0 nginx nginx $rule 0 setenforce 0 nginx keepalive_timeout 0 nginx max-age=0 nginx fail_timeout=0 nginx 0 byte files nginx libpcre.so.0 nginx nginx 1.10.3 nginx 1.12.1 nginx 1.4.6 nginx 1.6.3 exploit nginx 1.10.3 vulnerabilities nginx 13 permission denied nginx 1.12 nginx 1.6.2 nginx 1.10.3 exploit nginx 111 connection refused $1 nginx nginx $1 $2 nginx $1 variable nginx *1 directory index of is forbidden nginx 1 million connections nginx 1.6 2 nginx *1 access forbidden by rule nginx 1 worker symfony1 nginx nginx sha1 nginx 2fa nginx 206 nginx 2017 nginx 2 server names nginx 204 nginx 2 servers nginx 2.0 nginx 2fa auth nginx 2f nginx 2 websites 2 nginx instances 2 nginx servers 2 nginx process $2 nginx nginx 2 way ssl nginx 2 domains nginx 2 factor authentication nginx 2 sites nginx 2 locations nginx 301 redirect nginx 301 nginx 304 nginx 301 moved permanently nginx 301 redirect https nginx 3rd party modules nginx 302 found nginx 307 nginx 304 not modified nginx 301 https nginx *3 directory index of is forbidden nginx *3 access forbidden by rule ispconfig 3 nginx kibana 3 nginx codeigniter 3 nginx cakephp 3 nginx ispconfig 3 nginx reverse proxy symfony 3 nginx kibana 3 nginx proxy capistrano 3 nginx nginx 403 forbidden nginx 404 nginx 413 nginx 499 nginx 403 nginx 405 nginx 404 page nginx 400 bad request nginx 499 error nginx 403 forbidden php nginx 4 tier architecture nginx 4 tier kibana 4 nginx kibana 4 nginx reverse proxy nagios 4 nginx laravel 4 nginx varnish 4 nginx laravel 4 nginx rewrite vbulletin 4 nginx wordpress 4 nginx nginx 502 bad gateway nginx 504 nginx 500 nginx 503 nginx 502 bad gateway php nginx 503 service unavailable nginx 504 gateway timeout php nginx 504 timeout nginx 502 bad gateway django nginx 502 bad gateway node laravel 5 nginx laravel 5 nginx config centos 5 nginx laravel 5 nginx rewrite laravel 5 nginx configuration passenger 5 nginx laravel 5 nginx 404 laravel 5 nginx blank page concrete5 nginx nginx asp net 5 nginx 64 bit nginx 60 second timeout nginx 61 connection refused nginx 64 bit linux nginx 60 operation timed out nginx 60s timeout nginx 64mb vps nginx 65535 nginx 644 nginx 64 bit ubuntu nginx 6 centos 6 nginx centos 6 nginx php-fpm centos 6 nginx repo drupal 6 nginx centos 6 nginx reverse proxy centos 6 nginx phpmyadmin centos 6 nginx 1.9 centos 6 nginx 1.8 centos 6 nginx geoip nginx 768 worker_connections are not enough nginx 755 nginx 720p nginx centos 7 nginx php 7 nginx drupal 7 nginx debian 7 nginx windows 7 nginx rhel 7 nginx centos 7 repo nginx 7 centos 7 nginx centos 7 nginx php-fpm php 7 nginx debian 7 nginx drupal 7 nginx centos 7 nginx phpmyadmin rhel 7 nginx centos 7 nginx repo centos 7 nginx reverse proxy nginx 80 nginx 80 to 443 nginx 8080 nginx 80 to 8080 nginx 80 already in use nginx 8443 nginx 80 redirect 443 nginx 8nv nginx 8080 connection refused nginx 80 port nginx 8 drupal 8 nginx owncloud 8 nginx debian 8 nginx owncloud 8 nginx ubuntu odoo 8 nginx debian 8 nginx version tomcat 8 nginx utf-8 nginx debian 8 nginx php5-fpm nginx 98 address already in use nginx 9000 nginx 99 nginx 98 already in use nginx 98 nginx 9090 nginx 9443 nginx 9gag 92five nginx nginx owncloud 9 nginx 9 owncloud 9 nginx odoo 9 nginx owncloud 9 nginx config cloud 9 nginx jetty 9 nginx freenas 9 nginx freebsd 9 nginx php-fpm owncloud 9 nginx configuration


Nginx කියන්නේ  free, open-source, high-performance HTTP server එකක්. හරියටම කිව්වොත් Apache වගේ ඉතින් අපිට පුළුවන් සයිට් හොස්ට් කරන්න apache වල වගේම.

install කරන්න කලින් කරන්න ඕනි දේවල්

CentOS install කරපු මැෂින් එකක්
අන්තර්ජාල පහසුකම්.
install කරන්න දන්නේ නැත්තම් මේක බලන්න

මුලින්ම Nginx Repository එක දාන විදිහ බලමු

මේ cmd එක ගහන්න
sudo yum install epel-release

 දැන් අපි Nginx install කරමු

මේ yum command එක ගහන්න
sudo yum install nginx
දැන් ඔය එක එක ඒවා එයි ඒවාට y එක දෙන්න.

දැන් තියෙන්නේ මේ service එක start කරන්න

එකට මේ cmd එක ගහන්න මොකද මේක auto start වෙන්නේ නෑ
sudo systemctl start nginx
හරි දැන් අපි බුට් එකේදී මේක on වෙන්න හරිගස්සමු
sudo systemctl enable nginx
දැන් තියෙන්නේ firewall එකෙන් HTTP සහ HTTPS පොර්ට් allow කරන එක
නැත්තම් ඉතින් lan එකෙන් තියා wan එකෙන් වත් හොස්ට් කරන සයිට් එක බලන්න බෑ.
sudo firewall-cmd --permanent --zone=public --add-service=http 
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
ඉස්සෙල්ලම ඔයාගේ ලෝකල් මැෂින් එකෙන් localhost එක ගහල බලන්න

ඊටපස්සේ lan එකේ මැෂින් එකකින් URL එක ගහන්න
http://server_domain_name_or_IP/
දැන් මෙහෙම එනවා නම් වැඩේ ගොඩ.

දැන් තමන්ගේ HTML files, php සෙට් එක 
/usr/share/nginx/html/
එක ඇතුලට දාන්න
මොනවා හරි අවුලක් ආවොත් msg එකක් දාන්න
Manusha

Manusha Amal

මගේ තියන අත්දැකීම් මේ බ්ලොග් එක කියවන ඔබට පේනවනේ, ඉතින් ඔයාලට ගැටළුවක් අවොත් මාව Contact කරගන්න පුළුවන්.

Post A Comment: