Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
php示例代码在服务器上不起作用:
exec('echo "hello world" | at now + 2 minutes');
在终端上,相同的代码在以下代码中成功执行:
echo "hello world" | at now + 2 minutes
我们正在使用 php 7.0、ngnix、ubuntu 16.04 我能够执行 exec("sudo php -v"); 成功地。
嗨,我们找到了您需要从 /etc/at.deny文件中删除 WWW-DATA(即服务器)的解决方案。
/etc/at.deny