安装fecshop环境的nginx

安装报错 · docker11931 · 于 5年前 发布 · 1929 次阅读

http://www.fancyecommerce.com/2016/05/03/linux-安装nginx/#comment-8619

今天试了一下分别安装各个环境,到安装nginx时报错,教程中的第四步没法启动,求助大家这个如何解决? [root@localhost conf.d]# systemctl status nginx.service ● nginx.service - SYSV: Nginx is a high-performance web and proxy server. Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled) Active: failed (Result: exit-code) since 四 2019-01-31 17:43:16 CST; 52min ago

 Docs: man:systemd-sysv-generator(8)

1月 31 17:43:16 localhost.localdomain systemd[1]: Starting SYSV: Nginx is a high-performance web and proxy server.... 1月 31 17:43:16 localhost.localdomain nginx[7613]: /etc/rc.d/init.d/nginx: 第 20 行:[: =: 期待一元表达式 1月 31 17:43:16 localhost.localdomain nginx[7613]: Starting nginx: nginx: [emerg] open() "/usr/local/nginx/conf/fcgi.conf" failed (2: ...conf:15 1月 31 17:43:16 localhost.localdomain nginx[7613]: [失败] 1月 31 17:43:16 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1 1月 31 17:43:16 localhost.localdomain systemd[1]: Failed to start SYSV: Nginx is a high-performance web and proxy server.. 1月 31 17:43:16 localhost.localdomain systemd[1]: Unit nginx.service entered failed state. 1月 31 17:43:16 localhost.localdomain systemd[1]: nginx.service failed. Hint: Some lines were ellipsized, use -l to show in full.

共收到 4 条回复
docker11931#15年前 0 个赞

![](https://i.loli.net/2019/01/31/5c52d6d21d715.png)

执行启动后,进程有nginx ,但是启动命令没有成功的提示,这算成功还是失败?再次执行启动,就会报上面的错了

Fecmall#25年前 0 个赞

成功还是失败,访问一下你配置的域名,是否可以访问,就知道了吗?另外看一下nginx的日志是否有错误/

docker11931#35年前 0 个赞

和教程一摸一样的操作,每次开启或重启就报错,百度不到方法。

Fecmall#45年前 0 个赞

看日志信息啊,log写的很明确

emerg bind() to 0.0.0.0:80 failed (address already in use) 80端口被占用

报错信息不要用截图,截图的内容后面遇到这个问题的人无法搜索到,那么回复这个问题仅仅帮助到一个人,然后这个帖子就陈掉了。

先看一边发帖说明:http://www.fecshop.com/topic/624

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics