Nginx: Instalando o Nginx no Linux: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 19: Line 19:
  # yum -y install nginx
  # yum -y install nginx


3. Iniciando o Nginx


Execute o comando


Execute o comando
# systemctl start nginx
# systemctl enable nginx
 
4. Testando


systemctl start nginx
Via navegador acesse a url <nowiki>http://localhost</nowiki>


3. Configurar





Revision as of 19:31, 6 October 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

# systemctl start nginx
# systemctl enable nginx

4. Testando

Via navegador acesse a url http://localhost


Ver também