How does redis start in the background?

I"ve read a lot about changing the daemonize in redis.conf to yes
, but I don"t see where this item is.
solve.

Mar.23,2021

if you install redis, through the package manager, there is a service script directly. You can launch


in the background by directly using service redis start .

official redis.conf has daemonize

-sharp By default Redis does not run as a daemon. Use 'yes' if you need it.
-sharp Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize no

you can just configure daemonize as yes


add


cd to the redis folder, then type. / bin/redis-server. / redis.conf enter


1.cd to the redis folder and find redis.conf
2. Set daemonize to yes
3. Enter. / redis-server.. / redis.conf this path is uncertain depending on the individual's actual installation, anyway, it is to find the path of redis-server and start with the path of redis.conf


daemonize

Menu