Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

660
Views
¿Hay alguna manera de resolver un problema con el estado de nginx Activo: problema inactivo (muerto) en CENTOS?

Esto es lo que trae cuando compruebas el estado de nginx

 [root@ttproxyapp conf.d]# service nginx status Redirecting to /bin/systemctl status nginx.service ● nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled) Active: inactive (dead)
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

sudo systemctl stop apache2 sudo systemctl start nginx

debería funcionar ya que parece que el puerto está en uso (probablemente con apache)

over 4 years ago · Santiago Trujillo Report

0

tal vez haya un servidor apache ejecutándose. debe detener ese servidor apache para ejecutar el servidor Nginx.

sudo systemctl detener apache2

sudo systemctl iniciar nginx

over 4 years ago · Santiago Trujillo Report

0

Realmente parece que su NGINX no se está ejecutando. nginx -s reload solo funciona si hay una instancia en ejecución y, por lo tanto, un archivo PID.

Compruebe el resultado del siguiente comando.

 [root@localhost conf.d]# sudo ps -elf | grep nginx

debería ser algo como

 1 S root 88262 1 0 80 0 - 13143 sigsus 23:47 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf 5 S nginx 88263 88262 0 80 0 - 13257 ep_pol 23:47 ? 00:00:00 nginx: worker process 0 R root 88265 69227 0 80 0 - 28178 - 23:47 pts/1 00:00:00 grep --color=auto nginx

¡Necesitas al menos! el proceso maestro y el proceso trabajador! Si no hay ningún proceso, inicie su instancia escribiendo

sudo /bin/systemctl start nginx.service O sudo service nginx start

Verifique su lista de procesos después de ejecutar el comando.

Después de haber iniciado el servicio NGINX, debería haber un archivo PID ubicado en /var/run/nginx.pid y sudo systemctl status nginx.service debería imprimir algo como

 [root@localhost conf.d]# systemctl status nginx.service ● nginx.service - NGINX Plus - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2020-03-14 23:47:13 EDT; 5min ago Docs: https://www.nginx.com/resources/ Process: 88232 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 88260 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS) Process: 88251 ExecStartPre=/usr/libexec/nginx-plus/check-subscription (code=exited, status=0/SUCCESS) Main PID: 88262 (nginx) Tasks: 2 Memory: 1.7M CGroup: /system.slice/nginx.service ├─88262 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf └─88263 nginx: worker process Mar 14 23:47:13 localhost.localdomain systemd[1]: Starting NGINX Plus - high performance web server... Mar 14 23:47:13 localhost.localdomain systemd[1]: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory Mar 14 23:47:13 localhost.localdomain systemd[1]: Started NGINX Plus - high performance web server.

Estoy ejecutando NGINX Plus pero no importa en este caso.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!