出现错误
2022/10/23 22:14:42 [emerg] 316#11040: CreateFile() “E:\白鹭项目\game_cqzj\nginx/conf/nginx.conf” failed (1113: No mapping for the Unicode character exists in the target multi-byte code page)
2022/10/23 22:15:03 [emerg] 15164#10168: CreateFile() “E:\白鹭项目\game_cqzj\nginx/conf/nginx.conf” failed (1113: No mapping for the Unicode character exists in the target multi-byte code page)
2022/10/23 22:15:38 [emerg] 26844#28204: CreateFile() “E:\白鹭项目\game_cqzj\nginx/conf/nginx.conf” failed (1113: No mapping for the Unicode character exists in the target multi-byte code page)
2022/10/23 22:15:57 [emerg] 20716#28496: CreateFile() “E:\白鹭项目\nginx/conf/nginx.conf” failed (1113: No mapping for the Unicode character exists in the target multi-byte code page)
解决办法其实很简单
原因 找不到nginx.conf配置文件
确保nginx.conf正确
不要用中文名称即可
E:\nginx\conf\nginx.conf
nginx常用命令
1、 开启
start nginx
或
nginx.exe
注:建议使用第一种,第二种会使你的cmd窗口一直处于执行中,不能进行其他命令操作
2、停止:
nginx.exe -s stop
或
nginx.exe -s quit
注:stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息。
3、重新载入Nginx:
C:\server\nginx-1.0.2>nginx.exe -s reload
当配置信息修改,需要重新载入这些配置时使用此命令。
4、重新打开日志文件:
C:\server\nginx-1.0.2>nginx.exe -s reopen