【问题标题】:PHP "AT command" not executing on nginx ubuntu 16.04PHP“AT 命令”未在 nginx ubuntu 16.04 上执行
【发布时间】:2017-07-28 07:08:04
【问题描述】:

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");成功了。

【问题讨论】:

    标签: php ubuntu nginx at-job


    【解决方案1】:

    您好,我们找到了您需要从/etc/at.deny 文件中删除 WWW-DATA(即服务器)的解决方案。

    【讨论】:

      猜你喜欢
      • 2020-05-27
      • 1970-01-01
      • 1970-01-01
      • 2020-06-08
      • 2015-04-22
      • 2020-04-30
      • 1970-01-01
      相关资源
      最近更新 更多