How to install Nginx in Ubuntu?
up vote
4
down vote
favorite
Recently I have installed a LAMP server in my Ubuntu Desktop 12.04 LTS.
Now how can I install Nginx and implement with my present LAMP Server?
software-installation nginx
add a comment |
up vote
4
down vote
favorite
Recently I have installed a LAMP server in my Ubuntu Desktop 12.04 LTS.
Now how can I install Nginx and implement with my present LAMP Server?
software-installation nginx
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Recently I have installed a LAMP server in my Ubuntu Desktop 12.04 LTS.
Now how can I install Nginx and implement with my present LAMP Server?
software-installation nginx
Recently I have installed a LAMP server in my Ubuntu Desktop 12.04 LTS.
Now how can I install Nginx and implement with my present LAMP Server?
software-installation nginx
software-installation nginx
edited May 15 '14 at 4:04
Lucio
12.3k2183157
12.3k2183157
asked Dec 6 '13 at 15:15
Farukh
3831410
3831410
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
up vote
1
down vote
accepted
To install Nginx in your Ubuntu , open your terminal and type as
sudo -i
add-apt-repository ppa:nginx/development
apt-get update
apt-get install nginx
that will install nginx in your Ubuntu.
add a comment |
up vote
2
down vote
From Nginx Wiki:
Open a terminal and enter the commands (remember to replace the values!):
sudo -s
nginx=stable # use nginx=development for latest development version
ubuntu=trusty # Replace this with your ubuntu version!
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $ubuntu main" > /etc/apt/sources.list.d/nginx-$nginx-$ubuntu.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
add a comment |
up vote
0
down vote
Login as Root User and type command:
Command: (apt-get update && apt-get install nginx;)
This command will install default version of nginx that comes with ubuntu software repository with latest updates.
New contributor
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Usesudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.
– Marc Vanhoomissen
Nov 29 at 13:11
add a comment |
up vote
-1
down vote
To install stable Nginx Open terminal and run the following commands:::
sudo su
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
To install Nginx in your Ubuntu , open your terminal and type as
sudo -i
add-apt-repository ppa:nginx/development
apt-get update
apt-get install nginx
that will install nginx in your Ubuntu.
add a comment |
up vote
1
down vote
accepted
To install Nginx in your Ubuntu , open your terminal and type as
sudo -i
add-apt-repository ppa:nginx/development
apt-get update
apt-get install nginx
that will install nginx in your Ubuntu.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
To install Nginx in your Ubuntu , open your terminal and type as
sudo -i
add-apt-repository ppa:nginx/development
apt-get update
apt-get install nginx
that will install nginx in your Ubuntu.
To install Nginx in your Ubuntu , open your terminal and type as
sudo -i
add-apt-repository ppa:nginx/development
apt-get update
apt-get install nginx
that will install nginx in your Ubuntu.
answered Dec 6 '13 at 16:58
rɑːdʒɑ
56.4k84216301
56.4k84216301
add a comment |
add a comment |
up vote
2
down vote
From Nginx Wiki:
Open a terminal and enter the commands (remember to replace the values!):
sudo -s
nginx=stable # use nginx=development for latest development version
ubuntu=trusty # Replace this with your ubuntu version!
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $ubuntu main" > /etc/apt/sources.list.d/nginx-$nginx-$ubuntu.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
add a comment |
up vote
2
down vote
From Nginx Wiki:
Open a terminal and enter the commands (remember to replace the values!):
sudo -s
nginx=stable # use nginx=development for latest development version
ubuntu=trusty # Replace this with your ubuntu version!
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $ubuntu main" > /etc/apt/sources.list.d/nginx-$nginx-$ubuntu.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
add a comment |
up vote
2
down vote
up vote
2
down vote
From Nginx Wiki:
Open a terminal and enter the commands (remember to replace the values!):
sudo -s
nginx=stable # use nginx=development for latest development version
ubuntu=trusty # Replace this with your ubuntu version!
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $ubuntu main" > /etc/apt/sources.list.d/nginx-$nginx-$ubuntu.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
From Nginx Wiki:
Open a terminal and enter the commands (remember to replace the values!):
sudo -s
nginx=stable # use nginx=development for latest development version
ubuntu=trusty # Replace this with your ubuntu version!
echo "deb http://ppa.launchpad.net/nginx/$nginx/ubuntu $ubuntu main" > /etc/apt/sources.list.d/nginx-$nginx-$ubuntu.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
answered May 15 '14 at 4:09
Lucio
12.3k2183157
12.3k2183157
add a comment |
add a comment |
up vote
0
down vote
Login as Root User and type command:
Command: (apt-get update && apt-get install nginx;)
This command will install default version of nginx that comes with ubuntu software repository with latest updates.
New contributor
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Usesudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.
– Marc Vanhoomissen
Nov 29 at 13:11
add a comment |
up vote
0
down vote
Login as Root User and type command:
Command: (apt-get update && apt-get install nginx;)
This command will install default version of nginx that comes with ubuntu software repository with latest updates.
New contributor
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Usesudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.
– Marc Vanhoomissen
Nov 29 at 13:11
add a comment |
up vote
0
down vote
up vote
0
down vote
Login as Root User and type command:
Command: (apt-get update && apt-get install nginx;)
This command will install default version of nginx that comes with ubuntu software repository with latest updates.
New contributor
Login as Root User and type command:
Command: (apt-get update && apt-get install nginx;)
This command will install default version of nginx that comes with ubuntu software repository with latest updates.
New contributor
edited Nov 30 at 13:48
New contributor
answered Nov 29 at 12:48
Faraz Hashmi
14
14
New contributor
New contributor
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Usesudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.
– Marc Vanhoomissen
Nov 29 at 13:11
add a comment |
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Usesudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.
– Marc Vanhoomissen
Nov 29 at 13:11
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Use
sudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.– Marc Vanhoomissen
Nov 29 at 13:11
Hello and welcome to AU. Please edit our question in order to eliminate the need to login as root. Use
sudo
instead. You may also consider to add for which version of Ubuntu your answer is valid.– Marc Vanhoomissen
Nov 29 at 13:11
add a comment |
up vote
-1
down vote
To install stable Nginx Open terminal and run the following commands:::
sudo su
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
add a comment |
up vote
-1
down vote
To install stable Nginx Open terminal and run the following commands:::
sudo su
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
add a comment |
up vote
-1
down vote
up vote
-1
down vote
To install stable Nginx Open terminal and run the following commands:::
sudo su
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
To install stable Nginx Open terminal and run the following commands:::
sudo su
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
edited Oct 15 '15 at 15:25
answered Oct 6 '15 at 2:43
Ravan
5,581154375
5,581154375
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f387101%2fhow-to-install-nginx-in-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown