redis server stop

C++
$ redis-cli shutdown
Source

Also in C++: