nginx 启动报错

来源:7-5 静态资源服务器 nginx 启动

fya0122

2020-04-22

装了一晚上的upload.config,不知道为啥启动nginx总是报错
luzhengdeMacBook-Pro:~ luzheng$ sudo vim /Users/sam/upload/upload.conf luzhengdeMacBook-Pro:~ luzheng$ sudo nginx nginx: [emerg] open() “/Users/sam/upload/upload.conf” failed (2: No such file or directory) in /usr/local/etc/nginx/nginx.conf:116 luzhengdeMacBook-Pro:~ luzheng$ cd /Users/sam/upload/upload.conf -bash: cd: /Users/sam/upload/upload.conf: No such file or directory luzhengdeMacBook-Pro:~ luzheng$

写回答

1回答

扬_灵

2020-04-22

同学你好,/Users/sam/upload/upload.conf这个文件是老师本地关于nginx的配置,需要自己创建的,

0
2
扬_灵
回复
fya0122
同学你好,/Users/sam/upload/upload.conf这个文件不是固定的 是自己创建upload.conf文件的位置,
2020-04-22
共2条回复

Vue Element+Node.js开发企业通用管理后台系统

基于Element的中后台课程,一套中小型企业通用的后台管理系统

2829 学习 · 1714 问题

查看课程