gpt4 book ai didi

xinetd 中使用的 clustercheck 脚本的 MySQL 登录路径问题

转载 作者:行者123 更新时间:2023-11-29 21:17:18 29 4
gpt4 key购买 nike

默认:打开

# description: mysqlchk 
service mysqlchk
{
# this is a config for xinetd, place it in /etc/xinetd.d/
disable = no
flags = REUSE
socket_type = stream
type = UNLISTED
port = 9200
wait = no
user = root
server = /usr/bin/mysqlclustercheck
log_on_failure += USERID
only_from = 0.0.0.0/0
#
# Passing arguments to clustercheck
# <user> <pass> <available_when_donor=0|1> <log_file> <available_when_readonly=0|1> <defaults_extra_file>"
# Recommended: server_args = user pass 1 /var/log/log-file 0 /etc/my.cnf.local"
# Compatibility: server_args = user pass 1 /var/log/log-file 1 /etc/my.cnf.local"
# 55-to-56 upgrade: server_args = user pass 1 /var/log/log-file 0 /etc/my.cnf.extra"
#
# recommended to put the IPs that need
# to connect exclusively (security purposes)
per_source = UNLIMITED
}
/etc/xinetd.d #

有点奇怪的是,当使用/etc/xinetd.d/运行时,脚本手动运行时工作正常,但它没有按预期工作。

In mysqlclustercheck script, instead of using --user= and passord= syntax, I am using --login-path= syntax
script runs fine when I run using command line but status for xinetd was showing signal 13. After debugging, I have found that even simple command like this is not working
mysql_config_editor print --all >>/tmp/test.txt

We don't see any output generated when it is run using xinetd ( mysqlclustercheck)

最佳答案

您是否尝试过以下操作而不是/usr/bin/mysqlclustercheck

服务器 =/usr/bin/clustercheck

我想知道您是否可以使用 linux which 命令测试您的二进制位置。

关于xinetd 中使用的 clustercheck 脚本的 MySQL 登录路径问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35856921/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com