want to run redis-server in background nonstop

前端 未结 4 461
悲哀的现实
悲哀的现实 2021-01-30 04:57

I have downloaded redis-2.6.16.tar.gz file and i installed sucessfully. After installed i run src/redis-server it worked fine.

But i don\'t want manually run src/redis-s

4条回答
  •  长发绾君心
    2021-01-30 05:46

    Since Redis 2.6 it is possible to pass Redis configuration parameters using the command line directly. This is very useful for testing purposes.

    redis-server --daemonize yes
    

    Check if the process started or not:

    ps aux | grep redis-server
    

提交回复
热议问题