当启动postfix服务时出现如下错误提示:
# service postfix start
Starting Postfix Mail Transport Agent: postfixpostfix/postfix-script:
fatal: the Postfix mail system is already running
failed!
此外,postfix的status报告postfix is not running.
# service postfix status
postfix is not running.
也许是postfix上一次强行关闭时,没有删除自身的锁。启动时发现lock存在而无法运行。
Postfix的master PID文件(即锁)还存在/var/spool/postfix/pid目录下。进入该目录删除所文件即可:
# cd /var/spool/postfix/pid
# ls
master.pid
# rm master.pid
删除master.pid文件后启动postfix服务。
# service postfix start
Starting Postfix Mail Transport Agent: postfix