linux - 无法在 fedora22 上启动 nginx 服务器

标签 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 正在展示 /etc/nginx/default.d/phpMyAdmin.conf:17 中的上游“php-fpm”中没有端口

最佳答案

可能没有安装 php-fpm。

sudo dnf install php-fpm

关于linux - 无法在 fedora22 上启动 nginx 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32324228/

相关文章:

postgresql - PostgreSQL 的 NGINX TLS 终止

linux - Redis Id 不可读

r - R包的编译错误

linux - 如何在 Linux rpath 中编码可执行位置?

regex - 将 url 重定向到 url 到 www

c - .so 和 .so.x 的区别

php - 将站点重定向到移动版本,谷歌移动友好测试出错

python - 当 uwsgi 构建为整体式(内置插件)并通过 dnf 在 Fedora 上安装时如何使用它?

Linux:弱链接整个库,如 OS X ld -weak-lfoo

python - 从 shell 中杀死无限的 python 脚本