phpstudy启动报错nginx: [emerg] invalid number of arguments in “include” directive in 的解决方法

今天用phpstudy创建新站点的时候,提示如下错误:

nginx: [emerg] invalid number of arguments in "include" directive in D:\Program Files\phpstudy_pro\Extensions\Nginx1.15.11/conf/vhosts/test.ybb_80.conf:20

解决方法如下:

打开Nginx的配置文件nginx.conf,搜索”include”,找到类似include vhosts/*.conf;的一行。把后面的路径补全即可。注意!路径中不要带空格,比如路径中带Program Files,需要去掉空格,写成ProgramFiles

我修改之后如下图所示,修改保存后重启nginx服务就行。

关于博主
骨灰级博客玩家
国内第一批90后网站站长/程序员
做过七年前端讲师
目前从事锦鲤观赏鱼电商行业
鱼贝贝锦鲤创始人
文章列表
1
photoshop cc制作“花字”的方法
photoshop cc制作“花字”的方法
2
神坑react native之Cannot Add a child that doesn't have a YogaNode to a parent with out a measure function
神坑react native之Cannot Add a child that doesn't have a YogaNode to a parent with out a measure function
3
phpstudy2017开启列表显示功能的方法(windows环境提示Forbidden  You don't have permission to access / on this server的解决方案)
phpstudy2017开启列表显示功能的方法(windows环境提示Forbidden You don't have permission to access / on this server的解决方案)
4
在“山东微警务”公众号查询姓名在山东范围内重名人数的详细方法
在“山东微警务”公众号查询姓名在山东范围内重名人数的详细方法
5
WIN10彻底关闭Windows Defender的方法
WIN10彻底关闭Windows Defender的方法
最新评论
比比拉布
比比拉布
5月7日
太感谢了!!!!!!找了这么多的教程,只有你点出来了关键点——设计视图!!!!
Jake
Jake
3月7日
Halo 啊~麻烦更新下我的博客地址,原名:Jing Blog。麻烦更新如下: Jake Blog(后缀可以省略,也可以保留,看哪个风格适合) 网址:htt
评论于关于博主