Nginx层处理跨域

nginx配置文件加add_header 'Access-Control-Allow-Origin' '*';add_header 'Access-Control-Allow-Credentials' 'true';add_header 'Access-Control-Allow-Methods'

nginx 重启报错找不到nginx.pid(No such file or directory)

错误信息nginx 重启报错:nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)解决方案$sudo nginx (执行该命令之后,nginx 会在 /
Your browser is out of date!

Update your browser to view this website correctly. Update my browser now

×