nginx
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
nginx [2025/01/31 16:43] – [STATUS] jdos | nginx [2025/02/03 11:57] (atual) – [Nginx: Failed to start A high performance web server and a reverse proxy server [closed]] jdos | ||
---|---|---|---|
Linha 6: | Linha 6: | ||
</ | </ | ||
- | ===== STATUS | + | ===== Status |
< | < | ||
systemctl status nginx | systemctl status nginx | ||
</ | </ | ||
- | ===== Restart===== | + | ===== Restart ===== |
< | < | ||
systemctl restart nginx | systemctl restart nginx | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | systemctl reload nginx | ||
+ | </ | ||
+ | |||
+ | ===== UTIL ===== | ||
+ | < | ||
+ | ss -ltup | ||
+ | </ | ||
+ | |||
+ | Após qualquer modificação no arquivo, restart o serviço nginx. | ||
===== Config ===== | ===== Config ===== | ||
+ | |||
== Debian Path == | == Debian Path == | ||
< | < | ||
- | Arquivo de configurações de workers | + | ==== FILE "nginx.conf" ==== |
- | '' | ||
- | <code> | + | <file nginx.conf nginx.conf> |
worker_processes 1; #ou auto | worker_processes 1; #ou auto | ||
worker_connections 1024; # | worker_connections 1024; # | ||
Linha 47: | Linha 58: | ||
} | } | ||
- | </code> | + | </file> |
+ | ==== FILE " | ||
+ | == Debian path == | ||
+ | < | ||
+ | |||
+ | |||
+ | <file default default> | ||
+ | |||
+ | server{ | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | } | ||
+ | </ | ||
===== PROXY REVERSE ===== | ===== PROXY REVERSE ===== | ||
+ | ===== ERROS NGINX ===== | ||
+ | |||
+ | ==== Nginx: Failed to start A high performance web server and a reverse proxy server ==== | ||
+ | |||
+ | HTTP 80 port já esta sendo usada: | ||
+ | |||
+ | < | ||
+ | sudo service apache2 stop | ||
+ | sudo systemctl restart nginx | ||
+ | </ | ||
==== Referências e Agradecimentos ==== | ==== Referências e Agradecimentos ==== | ||
[[https:// | [[https:// | ||
nginx.1738352595.txt.gz · Última modificação: 2025/01/31 16:43 por jdos