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.