php-fpm 无法访问tmp目录
2025-07-02T01:44:49.pngSytemd PrivateTmp
这是程序包维护者设置的默认行为.这是因为/usr/lib/systemd/system/php-fpm.service中有PrivateTmp = true.
This is default behaviour set by package maintainers.It's because there is PrivateTmp=true in /usr/lib/systemd/system/php-fpm.service.
如果要更改它,可以创建包含以下内容的/etc/systemd/system/php-fpm.service.d/private-tmp.conf:
If you want to change it, you can create /etc/systemd/system/php-fpm.service.d/private-tmp.conf with contents:
[服务]PrivateTmp = false
[Service]PrivateTmp=false
评论已关闭