symptom I set a crontab task on a centos7 host, but when the time comes, I run mail and it prompts No mail, which means cron did not send an email to notify the user of the execution result of the task. Troubleshooting process Check crontab log CentOS logs are managed by systemd, so you can view related logs through systemctl. journalctl _COMM=crond --since=today Or use root to view the log /var/log/cron sudo cat /var/log/cron |grep -v '/usr/local/qcloud/stargate/admin/start.sh' Finally, we will see a line in the log: This means that the email failed to be sent. Check the mail log Check /var/log/maillog and you will find That is to say, mail prompts that it cannot find the corresponding network card for the IPV6 address ::1 on the host. Workaround After searching, I just need to create the missing file myself and then restart the postfix service. sudo mkfifo /var/spool/postfix/public/pickup sudo chown postfix:postdrop pickup systemctl restart postfix.service Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: How to install MySQL 5.7 from source code in CentOS 7 environment
>>: Vue implements the method example of tab routing switching component
Table of contents 1. VueRouter 1. Description 2. ...
The solution to the problem that the PHP7.3 versi...
Performance For example: HTML: <div class=&quo...
Table of contents 1 Introduction to the new opera...
First, let’s take an example: There is a type fie...
Create a test table -- --------------------------...
Table of contents Multiple uses of MySQL Load Dat...
View the engines supported by the current databas...
Table of contents Login business process Login fu...
https base port 443. It is used for something cal...
I searched a lot of articles online but didn'...
What products do you want to mention? Recently, t...
1. First enter the server's mysql to modify p...
Table of contents Basic instructions and usage An...
Slow query log related parameters MySQL slow quer...