Redis monitoring was added in supervisor, but no command was found.

I put redis into supervisor monitoring, I put redis startup command redis-server in the PATH attribute of / etc/profile, executed source / etc/profile, and manually specified that redis-server can start redis.
now I"m going to put redis into monitoring. Add the following:
[program:redis]
command=redis-server / mnt/software/redis-4.0.11/redis.conf
priority=2
autostart=true
startsecs=3
user=root
but the startup is not successful:
redis FATAL can"t find command "redis-server"

Nov.22,2021

find the redis-server command location. Try writing the full path

in
command under / usr/bin/ .
Menu