How to Install Nginx on Ubuntu 18.04 LTS (Linux)






nginx

  1. Prerequisites

    • Ubuntu 18.04, 17.10, 16.04
    • root privileges
    • few knowledge using vim

    Step 1 Install some Debian package development tools and library

    Step 2 Adding nginx repo

    Paste in two string

    For Ubuntu 12.04:

    For Ubuntu 14.04:

    For Ubuntu 16.04 or 18.04 :

    After that update

    Command stop and show strings like that:

    GPG error: http://nginx.org <name package> Release: The following signatures couldn’t be verified because the public key is not available: NOPUBKEY ABF5BD8xxxxxxx

    Don’t worry add this key



    repeat