php-fpm 无法访问tmp目录

2025-07-02T01:44:49.png2025-07-02T01:44:49.png

Sytemd 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

none
最后修改于:2025年07月02日 09:46

评论已关闭