Nginx: Instalando o Nginx no Linux: Difference between revisions
(Criou página com: '= Instalando o Nginx = Vamos instalar o Nginx e Node Package Manager (NPM) 1. Abra um terminal 2. Instale o Nginx '''Fedora.''' $ sudo dnf -y install nginx '''Red Hat...') |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
$ sudo dnf -y install nginx | $ sudo dnf -y install nginx | ||
'''Red Hat® Enterprise Linux® / RHEL | '''Red Hat® Enterprise Linux® / RHEL''' | ||
$ sudo yum -y install nginx | $ sudo yum -y install nginx | ||
'''CentOS 7''' | |||
$ sudo su - | |||
# yum -y install epel-release | |||
# yum -y update | |||
# yum -y install nginx | |||
3. Iniciando o Nginx | |||
Execute o comando | Execute o comando | ||
systemctl start nginx | '''CentOS 7''' | ||
# systemctl start nginx | |||
# systemctl enable nginx | |||
# systemctl stop firewalld | |||
# systemctl disable firewalld | |||
4. Testando | |||
Via navegador acesse a url <nowiki>http://localhost</nowiki> | |||
Line 36: | Line 52: | ||
[[Category:Tecnologias]] | [[Category:Tecnologias]] | ||
[[Category:Fedora]] | [[Category:Fedora]] | ||
[[Category:Nginx]] |
Latest revision as of 22:50, 31 December 2015
Instalando o Nginx
Vamos instalar o Nginx e Node Package Manager (NPM)
1. Abra um terminal
2. Instale o Nginx
Fedora. $ sudo dnf -y install nginx
Red Hat® Enterprise Linux® / RHEL $ sudo yum -y install nginx
CentOS 7 $ sudo su - # yum -y install epel-release # yum -y update # yum -y install nginx
3. Iniciando o Nginx
Execute o comando
CentOS 7 # systemctl start nginx # systemctl enable nginx # systemctl stop firewalld # systemctl disable firewalld
4. Testando
Via navegador acesse a url http://localhost
Ver também
- NodeJs: Instalando o NodeJs no Linux
- MongoDB: Instalando o MongoDB no Linux
- Nginx: Instalando o Nginx no Linux