当前位置:论坛首页 > Linux面板 > 求助

postfix启动失败

发表在 Linux面板2019-12-19 15:36 [复制链接] 4 2194

日志

日志

上图是日志
postfix启动失败
求助
使用道具 举报 只看该作者 回复
发表于 2019-12-19 15:45:31 | 显示全部楼层
给postfix目录权限
例:
  1. chown -R postfix /var/spool/postfix/
复制代码
  1. chown -R postfix /var/lib/postfix/
复制代码

再次启动,如果还有错误,请贴图
使用道具 举报 回复 支持 反对
发表于 2019-12-19 16:10:38 | 显示全部楼层
提示不允许操作 和权限被拒绝。。
chown: cannot read directory '/var/spool/postfix/public': Permission denied
chown: cannot read directory '/var/spool/postfix/saved': Permission denied
chown: changing ownership of '/var/spool/postfix/usr/lib/zoneinfo/localtime': Operation not permitted
chown: changing ownership of '/var/spool/postfix/usr/lib/zoneinfo': Operation not permitted
chown: changing ownership of '/var/spool/postfix/usr/lib/sasl2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/usr/lib': Operation not permitted
chown: changing ownership of '/var/spool/postfix/usr': Operation not permitted
chown: cannot read directory '/var/spool/postfix/deferred': Permission denied
chown: cannot read directory '/var/spool/postfix/incoming': Permission denied
chown: cannot read directory '/var/spool/postfix/corrupt': Permission denied
chown: cannot read directory '/var/spool/postfix/private': Permission denied
chown: changing ownership of '/var/spool/postfix/dev/urandom': Operation not permitted
chown: changing ownership of '/var/spool/postfix/dev/random': Operation not permitted
chown: changing ownership of '/var/spool/postfix/dev/log': Operation not permitted
chown: changing ownership of '/var/spool/postfix/dev': Operation not permitted
chown: cannot read directory '/var/spool/postfix/hold': Permission denied
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_systemd.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_nis-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_compat-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libresolv-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_dns.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libresolv.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libgcc_s.so.1': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_files-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_nisplus.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_files.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod.so.2': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu/libnss_hesiod-2.27.so': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib/x86_64-linux-gnu': Operation not permitted
chown: changing ownership of '/var/spool/postfix/lib': Operation not permitted
chown: cannot read directory '/var/spool/postfix/maildrop': Permission denied
chown: cannot read directory '/var/spool/postfix/active': Permission denied
chown: changing ownership of '/var/spool/postfix/etc/host.conf': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/services': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/nsswitch.conf': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/resolv.conf': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/hosts': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/localtime': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/ssl/certs/ca-certificates.crt': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/ssl/certs': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc/ssl': Operation not permitted
chown: changing ownership of '/var/spool/postfix/etc': Operation not permitted
chown: changing ownership of '/var/spool/postfix/pid/master.pid': Operation not permitted
chown: changing ownership of '/var/spool/postfix/pid': Operation not permitted
chown: cannot read directory '/var/spool/postfix/defer': Permission denied
chown: cannot read directory '/var/spool/postfix/flush': Permission denied
chown: cannot read directory '/var/spool/postfix/trace': Permission denied
chown: cannot read directory '/var/spool/postfix/bounce': Permission denied
chown: changing ownership of '/var/spool/postfix/': Operation not permitted
ubuntu@ip-172-31-39-119:~$ Permission denied^C
ubuntu@ip-172-31-39-119:~$ ^C
ubuntu@ip-172-31-39-119:~$ chown -R postfix /var/lib/postfix/
chown: changing ownership of '/var/lib/postfix/master.lock': Operation not permitted
chown: changing ownership of '/var/lib/postfix/': Operation not permitted
使用道具 举报 回复 支持 反对
发表于 2019-12-19 16:12:26 | 显示全部楼层
请使用root账号进行操作
  1. sudo su
复制代码
使用道具 举报 回复 支持 反对
发表于 2019-12-19 16:51:13 | 显示全部楼层
已经解决,是被占用了25端口,导致无法启动,
找出占用25端口的程序
  1. netstat -nap
复制代码

干掉他(注意修改PID数字)
  1. kill 2407
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表