Windows7安装nginx后,f命令出现“coul。
。。
nginx -t -f
结果提⽰错误:
nginx: the configuration file 'D:\nginx-1.15.3\f syntax is ok
nginx: [emerg] CreateDirectory() "'D:\nginx-1.15.3\conf/temp/client_body_temp" failed (3: The system cannot find the path specified)
nginx: configuration file 'D:\nginx-1.15.3\f test failed
并且运⾏如下命令:
nginx -t
也是出现错误提⽰:
nginx: [emerg] CreateFile() "'D:\nginx-1.15.3\conf/f" failed (3: The system cannot find the path specified)
nginx: configuration file 'D:\nginx-1.15.3\conf/f test failed
百思不得其解,后来在命令⾏上退出 conf ⽬录,回到根⽬录 'D:\nginx-1.15.3' ,如下运⾏命令:
D:\nginx-1.15.3> nginx -t -c f
则显⽰配置⽂件正确:
nginx: the configuration file D:\nginx-1.15.3/f syntax is ok
nginx: configuration file D:\nginx-1.15.3/f test is successful
并且,运⾏命令:
D:\nginx-1.15.3> nginx -t
显⽰nginx安装正常
nginx: the configuration file D:\nginx-1.15.3/f syntax is ok
nginx: configuration file D:\nginx-1.15.3/f test is successful
附nginx常⽤命令:
验证配置是否正确: nginx -t
查看Nginx的版本号:nginx -V
启动Nginx:start nginx
nginx停止命令快速停⽌或关闭Nginx:nginx -s stop
正常停⽌或关闭Nginx:nginx -s quit
配置⽂件修改重装载命令:nginx -s reload

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。