解决办法:以root权限运行nginx,即修改/etc/nginx/nginx.conf中的user www-data的www-data为root