无法在fedora22启动nginx服务器

时间:2015-09-01 05:37:20

标签: linux nginx fedora

我正在使用fedora22我已经安装了nginx服务器。它正在运行并且完美地工作但是它是如何停止的。 现在我正在尝试启动它,但它没有启动 我尝试了以下可能的

# service nginx restart
Redirecting to /bin/systemctl restart  nginx.service
Job for nginx.service failed. See "systemctl status nginx.service" and "journalctl -xe" for details

#systemctl start nginx
Job for nginx.service failed. See "systemctl status nginx.service" and "journalctl -xe" for details.

但它没有开始如何开始这个??

#systemctl 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 Tue 2015-09-01 11:12:12 UTC; 21h ago

Sep 01 11:12:12 www.mysite.com systemd[1]: Starting The nginx HTTP and rev....
Sep 01 11:12:12 www.mysite.com nginx[313]: nginx: [emerg] no port in upstr...7
Sep 01 11:12:12 www.mysite.com nginx[313]: nginx: configuration file /etc/...d
Sep 01 11:12:12 www.mysite.com systemd[1]: nginx.service: control process ...1
Sep 01 11:12:12 www.mysite.com systemd[1]: Failed to start The nginx HTTP ....
Sep 01 11:12:12 www.mysite.com systemd[1]: Unit nginx.service entered fail....
Sep 01 11:12:12 www.mysite.com systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

tail /var/log/nginx/error.log 正在显示 no port in upstream "php-fpm" in /etc/nginx/default.d/phpMyAdmin.conf:17

1 个答案:

答案 0 :(得分:3)

可能没有安装php-fpm。

sudo dnf install php-fpm