需要调试 Postfix 服务以解决启动缓慢的问题

需要调试 Postfix 服务以解决启动缓慢的问题

我最近启动速度很慢,发现使用systemd-analyzepostfix-service需要将近 25 秒才能启动,critical-chain告诉我这是特别的postfix@-service

附言:我也不知道 postfix@ 是什么

使用后显示以下内容journalctrl -u [email protected]

Jan 28 12:24:10 aaryan-Inspiron-5577 systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
Jan 28 12:24:35 aaryan-Inspiron-5577 postfix/postfix-script[1641]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Jan 28 12:24:35 aaryan-Inspiron-5577 postfix/postfix-script[1657]: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
Jan 28 12:24:35 aaryan-Inspiron-5577 postfix/postfix-script[1662]: warning: /var/spool/postfix/etc/ssl/certs/ca-certificates.crt and /etc/ssl/certs/ca-certificates.crt differ

可以清楚地看到 25 秒的时间延迟,但是我有点迷茫,不知道如何进行更深入的调试,因为这个日志没有太大帮助。我有一个想法,如果我在启动此服务期间(在启动期间)调试系统调用并查看它们的时间延迟,我将能够准确指出问题所在。

我也可以删除这项服务,因为它是一台私人笔记本电脑,但这可能是一个很好的学习练习,所以我在这里发布!

相关内容