Skip to content
Follow
Ubuntu Linux

How to Check & Install Specific Nginx version on Ubuntu Linux

Richard
Written by
Richard
Dec 27, 2021 Updated Mar 19, 2026 1 min read
How to Install Google Chrome on Ubuntu Linux
How to Install Google Chrome on Ubuntu Linux

You check your Nginx version on Ubuntu Linux by running the command `nginx -v` in your terminal.

⚡ Quick Answer

Check your Nginx version with the command nginx -v or nginx -V in the terminal. To install Nginx, use the command apt-get install nginx.

Knowing your Nginx version is crucial for compatibility, security, and accessing specific features, especially when you need to install a particular release, such as Nginx 1.20.1.

This guide focuses on helping you quickly identify your current Nginx installation and then guides you through the process of installing a specific Nginx version on your Ubuntu system.

We will also show you how to examine which Nginx modules are actively loaded, giving you a complete picture of your web server’s configuration.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to install Joomla with Nginx support on Ubuntu 24.04
CMS How to install Joomla with Nginx support on Ubuntu 24.04
How to Install Nginx on Ubuntu Linux
Ubuntu Linux How to Install Nginx on Ubuntu Linux

0 Comments

  • Thank you for such a detailed post!

    Reply
  • Martin Patzekov

    Thanks, that actually did work. When I installed the preferred nginx version, then I checked the service status with:

    service nginx status

    And got the following message:
    ○ nginx.service
    Loaded: masked (Reason: Unit nginx.service is masked.)
    Active: inactive (dead)

    Then I had to do the following:

    sudo systemctl unmask nginx.service
    sudo systemctl start nginx.service
    sudo systemctl enable nginx.service

    And then my nginx was working.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *