写了一个文件监控的脚本,然后发现了一系列的问题:
第一个问题:提示只支持IPV4
0 1 2 3 4 5 6 7 |
[root@LAMP script]# sh wenjianxiugai.sh md5sum: WARNING: 1 of 4854 computed checksums did NOT match [root@LAMP script]# send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol send-mail: warning: inet_protocols: configuring for IPv4 support only postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol postdrop: warning: inet_protocols: configuring for IPv4 support only postdrop: warning: unable to look up public/pickup: No such file or directory ^C |
修复第一个问题:
0 1 2 3 |
##################################################### [root@LAMP script]# vim /etc/postfix/main.cf inet_protocols = all,修改配置为inet_protocols = ipv4 ##################################################### |
第二个问题:bash: chkconfig: command not found
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[root@LAMP script]# . /etc/postfix/main.cf -bash: queue_directory: command not found -bash: command_directory: command not found -bash: daemon_directory: command not found -bash: data_directory: command not found -bash: mail_owner: command not found -bash: inet_interfaces: command not found -bash: inet_protocols: command not found -bash: mydestination: command not found -bash: unknown_local_recipient_reject_code: command not found -bash: alias_maps: command not found -bash: alias_database: command not found -bash: debug_peer_level: command not found -bash: debugger_command: command not found -bash: ddd: command not found ^C [1]+ Exit 127 ddd $daemon_directory/$process_name $process_id -bash: sendmail_path: command not found -bash: newaliases_path: command not found -bash: mailq_path: command not found -bash: setgid_group: command not found -bash: html_directory: command not found -bash: manpage_directory: command not found -bash: sample_directory: command not found -bash: readme_directory: command not found |
修复第二个问题:
0 1 2 |
[root@LAMP script]# chkconfig --list -bash: chkconfig: command not found [root@LAMP script]# export PATH=/sbin:$PATH |
以上所有问题都是由于:postfix服务没有启动造成的!
0 1 2 3 4 5 |
[root@LAMP ~]# /etc/init.d/postfix start OR [root@LAMP script]# chkconfig --level 3 postfix on [root@LAMP script]# chkconfig --list postfix 0:off 1:off 2:off 3:on 4:off 5:off 6:off [root@LAMP script]# reboot |
申明:本文由BYRD原创(基于mailx-12.4-7),未经许可禁止转载!SourceByrd's Weblog-https://note.t4x.org/error/configuring-for-ipv4-support-only/ SourceByrd's Weblog-https://note.t4x.org/error/configuring-for-ipv4-support-only/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!