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 MyISAM and InnoDB Reasons for p...
Put your own web project in the webapps directory...
When Mysql associates two tables, an error messag...
The installation tutorial of MySQL 5.7.19 winx64 ...
Initialize Data DROP TABLE IF EXISTS `test_01`; C...
In order to speed up the parsing of the website, ...
Preface I believe that in the process of mobile t...
Abstract: Analysis of two MySQL SQL statement loc...
MTR stands for Mini-Transaction. As the name sugg...
1. Complexity of front-end engineering If we are ...
Result:Implementation Code html <link href=...
text 1) Download the Ubuntu image docker pull ubu...
There are many special symbols used in mathematic...
1. Create a page using app.json According to our ...
Sometimes in a project, due to some irreversible ...