nginx 是在root用户下安装的,静态网页的目录/var/www/html/ 目录下的内容所有者也是root 用户,按照 nginx配置文件中location说明 配置静态文件访问地址. 使用网址访问后出现错误日志显示如下 root@localhost:/etc/nginx# more /var/log/nginx/error.log // :: [error] #: * open() : Permission denied), client: 101.228.94.31, server:…