创建文件
/etc/systemd/system/PHP5-fpm.service.d/PHP5-fpm.service.conf
(必须以.conf结尾)内容:
.include /lib/systemd/system/PHP5-fpm.service [Service] UMask=0002
然后跑
systemctl daemon-reload systemctl restart PHP5-fpm