lnmp1.9 遇到的问题
lnmp1.9php7.4 imap程序rainloop 后台配置 smtp imap 的时候,这个过不去,提示这个,防火墙我没动,失败很stream_socket_client(): unable to connect to tcp://154.12.37.242:143 (Connection refused)stream_socket_client(): unable to connect to tcp://154.12.37.242:25 (Connection refused)本地telnet 一下,居然拒绝,telnet 154.12.37.242 25Trying 154.12.37.242...telnet: connect to address 154.12.37.242: Connection refused
还有测试iem613邮件系统的时候,email那边测试发送,都是没问题的,但是建立任务发送,就直接In Progress (Sent to 0 / 0) 计划任务都是配置好了的,
不过有一点就是php7.4 之后mphp 安装了5.6 imap ,就出这问题,
我等下换lnmp1.8试试,会继续跟进,测试
第一个问题可能是dns缓存没过来,又或者是
------------------------------------------------------------------------
hostname
hostnamectlset-hostname mail.域名
修改MTA(默认邮件传输代理)
alternatives --config mta
------------------------------------------------------------------------
第二个问题可能是 mphp (php5.6) 的计划任务有点问题吧,
我在计划任务后面加了 >> /home/cron.txt
得到错误的日志,
DEBUG=>Entry 1650551701:
DEBUG=>Update Thread: 0
DEBUG=>Update Job: jobid:1436, affected:0
DEBUG=>Update Thread: 0
DEBUG=>Update Job: jobid:1449, affected:0
DEBUG=>Update Thread: 0
DEBUG=>Update Job: jobid:1490, affected:0
DEBUG=>Update Thread: 0
DEBUG=>Update Job: jobid:1493, affected:0Get new Job to work: SELECT * FROM email_jobs WHERE jobtype='send' AND ( (jobstatus ='w' AND jobtime < 1650551701) OR(jobstatus='r' AND jobtime < 1650551701) OR(jobstatus='i' AND jobtime < 1650551701 AND lastupdatetime < 1650550201)) AND (approved > 0) OR (multithread>0 AND jobtype='send' AND multithread_full=0 AND (jobstatus ='w' OR jobstatus ='i' OR jobstatus ='r'))ORDER BY jobtime ASC LIMIT 1
DEBUG=>Entry 1650551701: Working with job=> 1411Multithread_API::Multithread_API::process_job -- Cannot find statid. Previous preliminary job process did not get finalized (either CRON died, or it hasn't finished processing the job). Ignoring this job: jobid 1411.
*** WARNING *** send job '1411' couldn't be processed.
我想问一下军哥,第二个php 的计划任务,和第一个php有区别吗?要不要加 -m 或者 -f 这样的参数?
https://www.bt.cn/bbs/thread-80043-1-1.html * * * * * /usr/local/php5.6/bin/php /home/wwwroot/app.wptmdp.com/admin/cron/cron.php
目录坑定没问题,就是不执行了, 1、什么系统?什么版本?
2、有些系统防火墙是iptables,有些是firewalld,还有些是nftables,某些云都另外还有安全组
多php版本就只是多安装一个php,也更改不到防火墙的设置
crontab什么规则?
php -m 是查看已安装模块的,php执行不需要加-f参数
开了crontab的话看crontab的日志,没开的话看系统日志
页:
[1]