Fehler beim starten Des nginx HTTP-und reverse-proxy-server Problem

Erste mal, dass ich bin Abwürgen nginx-server in meiner fedora-24. Ich bin mit apache-server für die Entwicklung. Für onlyoffice integration habe ich zum installieren von nginx-server. Ich installierte nginx-server mit diesem Befehl dnf install nginx

Bevor nginx-server habe ich apache gestoppt und deaktiviert es auch wie unten.

systemctl stop httpd
systemctl disable httpd

Wenn ich nun den nginx-server sudo service nginx start ich bin immer folgende Fehlermeldung.

Redirecting to /bin/systemctl start  nginx.service
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

Also lief ich die systemctl status nginx.service Befehl, um zu wissen, Thema, detail, ich habe unten die Ausgabe in meinem terminal.

[root@localhost ~]# systemctl -l status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2016-10-20 01:45:57 IST; 10s ago
  Process: 10719 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
  Process: 10709 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)

Oct 20 01:45:57 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse proxy server...
Oct 20 01:45:57 localhost.localdomain nginx[10719]: nginx: [emerg] no port in upstream "php-fpm" in /etc/nginx/default.d/phpMyAdmin.conf:17
Oct 20 01:45:57 localhost.localdomain nginx[10719]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 20 01:45:57 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Unit entered failed state.
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Failed with result 'exit-code'.

Ich habe versucht, mehrere Möglichkeiten, um zu beheben, indem Sie ändern die listen 80 zu listen 801 in /etc/nginx/nginx.conf aber kein Problem. Ich folgte dem unten urls auch aber ich kann nicht beheben Sie das Problem.

nginx nicht gestartet und kann nicht gestartet werden

https://serverfault.com/questions/717752/cant-start-nginx-code-exited-status-1-failure

/etc/nginx/default.d/phpMyAdmin.conf

# phpMyAdmin

location = /phpMyAdmin {
    alias /usr/share/phpMyAdmin/;
}

location /phpMyAdmin/{
     root /usr/share;
     index index.php index.html;

     location ~ ^/phpMyAdmin/(.+\.php)$
     {
         try_files $uri =404;
         fastcgi_intercept_errors on;
         include        fastcgi_params;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         fastcgi_pass   php-fpm;  //this is line number 17
     }
}

Vielen Dank im Voraus.

Ich weiß nicht genug über dieses Thema weiter zu helfen, aber beachten Sie, dass die log-Ausgabe Punkte, die Sie auf ein bestimmtes problem zu untersuchen: Oct 20 01:45:57 localhost.localdomain nginx[10719]: nginx: [emerg] no port in upstream "php-fpm" in /etc/nginx/default.d/phpMyAdmin.conf:17
Vielen Dank für Ihre Antwort. Ich habe überprüft, dass die Datei, aber ich bin nicht immer. So habe ich Hinzugefügt, dass die Datei-Inhalte mit meiner Frage. Bitte überprüfen

InformationsquelleAutor Manikandan S | 2016-10-19

Schreibe einen Kommentar