DEV Community

loading...

Run Redis on Repl.it

tingwei628 profile image Tingwei ・1 min read

I'm going to show how to build the Redis server from source and run it.

Step 1. Download Redis

Redis v6.0.5

$curl http://download.redis.io/releases/redis-6.0.5.tar.gz | tar -xz 

Step 2. Build from source

$cd redis-6.0.5
$make

Step 3. Start the server

$cd src
$./redis-server

That's all !

How to shutdown the server

$redis-cli
127.0.0.1:6379> shutdown

Thank you!

Discussion (2)

pic
Editor guide
Collapse
rayyan06 profile image
Rayyan Khan

How would you connect to your redis server from another repl?

Collapse
tingwei628 profile image
Tingwei Author

I did this only on the same repl. 😞 sorry.