在debian上启动nginx服务时出错

时间:2016-01-19 04:56:42

标签: php nginx debian

服务器操作系统:Debian 8“Jesse”

我尝试使用“sudo service nginx start”运行nginx服务,这将导致失败。然后我使用命令“sudo nginx -t”来查看问题是什么,这是出现的错误

nginx: [emerg] invalid number of arguments in "root" directive in /etc/nginx/sites-enabled/default:39

nginx: configuration file /etc/nginx/nginx.conf test failed

有关更多背景,请参阅/ etc / nginx / sites-enabled / default file

的第36-39行
root /var/www/my_web_directory
# Add index.php to the list if you are using PHP
index index.php index.html index.htm;

对于可能需要了解的人来说,还有更多的背景故事。 我试图运行mybb这就是我将“index.php”添加到文件

的原因

这个问题一直困扰着我,我也不知道如何解决这个问题。如果有任何答案,请发表您的回复。如果您需要更多详细信息,请随时提出,我将提供。

-John

0 个答案:

没有答案