Issue with Redis install “cc: Command not found”

前端 未结 7 2034
眼角桃花
眼角桃花 2021-02-03 22:14

Installing redis is really easy. I have done it on several VM. But on one instance, I am facing the following problem.

[root@server redis-2.4.2]# make
cd src &am         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 23:13

    To install the Redis on Ubuntu, go to terminal and type the following commands:

    $sudo apt-get update $sudo apt-get install redis-server

    This will install redis on your machine.

    To start Redis

    $redis-server

    Check if redis is working?

    $redis-cli

    This will open a redis prompt, as shown below:

    redis 127.0.0.1:6379>

    In the above prompt 127.0.0.1 is your machine's IP address and 6379 is port on which redis server is running. Now type the PING command as shown below.

    redis 127.0.0.1:6379> ping

    PONG

提交回复
热议问题