1、linux 64系统中启动nginx-1.13.7时出现错误:nginx: [emerg] getpwnam(“www”) failed
解决方法1:
在nginx.conf中 把user nobody的注释去掉既可
解决方法2:
错误的原因是没有创建www这个用户,应该在服务器系统中添加www用户组和用户www,如下命令:
#/usr/sbin/groupadd -f www
#/usr/sbin/useradd -g www www
2、windows部署下载路径时错误
2020/03/11 16:42:29 [crit] 18108#17852: *3 CreateFile() "D:\home
jyjy\file/信息统计表(20190219)_1583915495828.xls" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 192.168.161.16, server: localhost,
request: "GET /file/%E6%B9%96%E5%8C%97%E7%94%B5%E7%BD%91%E8%88%9E%E5%8A%A8%E4%BF%A1%E6%81%AF%E7%BB%9F%E8%AE%A1%E8%A1%A8%EF%BC%8820190219%EF%BC%89_1583915495828.xls HTTP/1.1", host: "192.168.1.6"
解决:在Windows下文件路径用”\\”,别用“/”
location /file {
alias D:\\home\\file;
}