Centos PHP-FPM Cron

前端之家收集整理的这篇文章主要介绍了Centos PHP-FPM Cron前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Centos vps盒子上安装了NginxPHP-fpm.我需要添加一个cronjob来每10分钟执行一次脚本.我尝试了crontab -e,其中包含以下内容
*/10 * * * * /path/to/script/script.PHP

但是,它没有正确执行.它说PHP代码中有错误而没有

尝试安装PHP-cli时出错

--> Running transaction check
---> Package PHP-cli.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: PHP-common = 5.1.6-27.el5_5.3 for package: PHP-cli
--> Finished Dependency Resolution
PHP-cli-5.1.6-27.el5_5.3.i386 from base has depsolving problems
  --> Missing Dependency: PHP-common = 5.1.6-27.el5_5.3 is needed by package PHP-cli-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: PHP-common = 5.1.6-27.el5_5.3 is needed by package PHP-cli-5.1.6-27.el5_5.3.i386 (base)
PHP-fpm只是fastcgi ..也安装PHP-cli包

编辑

您必须启用repo才能安装

yum -y --enablerepo=webtatic install PHP-cli
原文链接:https://www.f2er.com/centos/373529.html

猜你在找的CentOS相关文章