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 Preface 1. 404 Page 1. Causes 2...
Recently I used MySQL to export table data to an ...
Table of contents Bubble Sort Selection Sort Inse...
HTML is made up of tags and attributes, which are...
Table of contents 01 Problem Description 02 Solut...
Sometimes you may need to modify or add exposed p...
This article records the installation graphic tut...
Table of contents Code cleaning "Frames"...
Hello everyone, today I will share with you the i...
The arrangement layout of aligning the two ends o...
Table of contents Introduction Step 1 Step 2: Cre...
1. Unzip nginx-1.8.1.tar.gz 2. Unzip fastdfs-ngin...
For .net development, I am more familiar with Mic...
use Flexible boxes play a vital role in front-end...
1. What is floating? Floating, as the name sugges...