在Debian中运行良好:
val listOfFilters: List[(String, Object, FilterType)] = List(
("fromDate", String, DateFilter),
("toDate", String, DateFilter),
("id", Long, IdFilter)
)
在CentOS中在邮件日志中收到错误:
#!/bin/sh
time /usr/libexec/postfix/smtp $@
debuggin error warning: process /usr/libexec/postfix/smtp_time pid 28456 exit status 1
warning: /usr/libexec/postfix/smtp_time: bad command startup -- throttling
exec 2>>/tmp/smtp.log; set -x; time /usr/libexec/postfix/smtp "$@"
但文件存在且具有r + x权限。
答案 0 :(得分:0)
在您的set -x
日志记录中,time
使用/bin/sh
的实现看起来像which
尝试找到要与#!/bin/sh
export PATH=/usr/libexec/postfix:/bin:/usr/bin
time smtp "$@"
一起运行的文件,而不看是否file已被指定为完全限定的PATH。因此,请考虑:
{{1}}