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
神坑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
2
MongoDB数据库控制台中执行db.shutdownServer( )无法关闭数据库服务,提示shutdown command only works with the admin database; try 'use admin'的解决方法
MongoDB数据库控制台中执行db.shutdownServer( )无法关闭数据库服务,提示shutdown command only works with the admin database; try 'use admin'的解决方法
3
玩转京东云主机之③-域名解析
玩转京东云主机之③-域名解析
4
moment.js日期时间插件,设置中文语言的方法
moment.js日期时间插件,设置中文语言的方法
5
Dreamweaver CC 版本为图片添加图像热点(图像地图)的方法
Dreamweaver CC 版本为图片添加图像热点(图像地图)的方法
最新评论
比比拉布
比比拉布
5月7日
太感谢了!!!!!!找了这么多的教程,只有你点出来了关键点——设计视图!!!!
Jake
Jake
3月7日
Halo 啊~麻烦更新下我的博客地址,原名:Jing Blog。麻烦更新如下: Jake Blog(后缀可以省略,也可以保留,看哪个风格适合) 网址:htt
评论于关于博主