Advertisement
niammuddin

NGINX Installation

Jan 2nd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. NGINX Installation procedure:
  2.  
  3. Open Terminal. Open the Sources file for aptitude using vi. If you are not familiar with vi, open the file in nano or gedit.
  4.  
  5. sudo gedit /etc/apt/sources.list
  6.  
  7. If you are using Debian Squeeze (version 6.x),
  8.  
  9. deb http://nginx.org/packages/debian/ squeeze nginx
  10. deb-src http://nginx.org/packages/debian/ squeeze nginx
  11.  
  12. If you are using Ubuntu, select the respective lines from below,
  13. For Ubuntu Lucid (Version 10.04),
  14.  
  15. deb http://nginx.org/packages/ubuntu/ lucid nginx
  16. deb-src http://nginx.org/packages/ubuntu/ lucid nginx
  17.  
  18. For Ubuntu Oneiric (Version 11.10),
  19.  
  20. deb http://nginx.org/packages/ubuntu/ oneiric nginx
  21. deb-src http://nginx.org/packages/ubuntu/ oneiric nginx
  22.  
  23. For Ubuntu Precise (Version 12.04),
  24.  
  25. deb http://nginx.org/packages/ubuntu/ precise nginx
  26. deb-src http://nginx.org/packages/ubuntu/ precise nginx
  27.  
  28. Add the lines applicable to you in the sources.list file. Now save and close the file.
  29.  
  30. In order to authenticate the repository and to avoid warnings about missing gpg key during installation of the nginx package, it is advised to add the key used to sign the nginx packages and repository to the apt program keyring.
  31.  
  32. Run the following commands in the terminal,
  33.  
  34. wget http://nginx.org/keys/nginx_signing.key
  35. cat nginx_signing.key | sudo apt-key add -
  36.  
  37. Once added, update the aptitude with new repository,
  38.  
  39. sudo apt-get update
  40.  
  41. Now to install NGINX in Ubuntu or Debian systems, run the following command in terminal,
  42.  
  43. sudo apt-get install nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement