No video

How to build Nginx from Source Code | How to add module in Nginx after building from Source

In this video, I am going to explain how to build and install the Nginx from source code?
Steps:
Download Nginx tarball from nginx.org.
wget nginx.org/download/nginx-1.16...
tar -xf nginx-1.16.1.tar.gz
cd nginx-1.16.1/
apt-get install build-essential
./configure
apt-get install zlib* gzip* libssl-dev
./configure --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid
make
make install
nginx -V
Nginx Play List:
• Nginx High Performing ...

Пікірлер: 24

  • @harshrathod50
    @harshrathod503 жыл бұрын

    Great learning experience. Many of my doubts are cleared now.

  • @ServerGyan

    @ServerGyan

    3 жыл бұрын

    Thank you dear for your words Happy learning

  • @HuyLe-jb5hf
    @HuyLe-jb5hf3 жыл бұрын

    Thank you for your video support. Just for note ~ nginx -s stop # --> stop services nginx # -> -start services nginx -t # -> test config nginx -s reload # -> reload services nginx ?? for enable auto when reboot server

  • @ssmeo5771
    @ssmeo57714 жыл бұрын

    Thanks you Anna 😊

  • @ServerGyan

    @ServerGyan

    4 жыл бұрын

    Welcome dear, happy learning

  • @akramsyed2973
    @akramsyed29734 жыл бұрын

    Hi sir, Your sessions is very helpful for us Sir please update New Feb2020 Only AWS cloud admin interview question.

  • @ServerGyan

    @ServerGyan

    4 жыл бұрын

    Okay dear, sure I will update it soon

  • @ankitvarshney5989
    @ankitvarshney59894 жыл бұрын

    if I lost pem file of running instance then how can i access that instance. please suggest solution instead of take ami of it and access by another key. and also your video is superb.

  • @trimayaryamishra4884
    @trimayaryamishra48843 ай бұрын

    make[1]: *** [objs/Makefile:282: objs/src/core/nginx.o] Error 1 make[1]: Leaving directory '/opt/nginx-0.1.42' make: *** [Makefile:3: build] Error 2 getting this error on make command Any solutions ?

  • @mangeshgupta5677
    @mangeshgupta56773 жыл бұрын

    I want to use a reverse proxy (let say nginx ) such that , when request comes i will do some calculations in python on request parameters(body,header) ,and if my python function returns TRUE then ONLY I will alow that request to reach at destination server else return 500 error. Is nginx or other reverse proxy servers allows us to implement such custom python based checks ?

  • @ServerGyan

    @ServerGyan

    3 жыл бұрын

    By default it’s not allowed

  • @mangeshgupta5677

    @mangeshgupta5677

    3 жыл бұрын

    @@ServerGyan how can we make this work?😅

  • @fernandoferro9866
    @fernandoferro9866 Жыл бұрын

    It'd be great if you could make a tutorial on how to build nginx with php and php-fpm along with rtmp module to be used as a standalone web server for example on /home/myuser

  • @bimbim1862
    @bimbim18622 жыл бұрын

    cannot start

  • @nurhainiariffin6546
    @nurhainiariffin65464 жыл бұрын

    How to add new modules into the existing nginx source code?

  • @ServerGyan

    @ServerGyan

    4 жыл бұрын

    When you install nginx using source code, you can re compile it with new module, which is available with the version

  • @VivekGupta-ie6vd
    @VivekGupta-ie6vd4 жыл бұрын

    Hi Sir, I have create subdomain in nginx but it open main domain page what the problem any solution please suggest me

  • @ServerGyan

    @ServerGyan

    4 жыл бұрын

    What error are you getting

  • @VivekGupta-ie6vd

    @VivekGupta-ie6vd

    4 жыл бұрын

    @@ServerGyan there is no error page openings main page not sub domain html page

  • @sreekuttysree3496
    @sreekuttysree34964 жыл бұрын

    How to install our own nginx with name nginx-my.

  • @ServerGyan

    @ServerGyan

    4 жыл бұрын

    Hi dear, Can you please elaborate your question

  • @sreekuttysree3496

    @sreekuttysree3496

    4 жыл бұрын

    @@ServerGyan I need to build nginx from source with name nginx-cn. So after installation nginx-cn -t