1.安装gcc,用来编译reids

通过命令 sudo yum install gcc 

2.安装redis

$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz
$ tar xzf redis-4.0.1.tar.gz
$ cd redis-4.0.1
$ make

$ cd src

$ sudo make install
如果安装期间没有出现error,这样就安装成功了。
安装过程可以参考:
http://www.cnblogs.com/wangchunniu1314/p/6339416.html

3.配置redis.conf,由于需要局域网能够访问,所以需要进行一些配置:

bind 0.0.0.0
daemonize yes(后台运行)

4.重新启动redis

重新启动最好先kill掉redis的进程,然后再用redis-server redis.conf进行启动

查看redis相关进程:

 ps aux | grep redis

kill -9  xxx   xxx表示进程ID

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2021-04-25
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2021-11-14
  • 2022-12-23
  • 2021-09-19
  • 2021-12-10
  • 2021-07-11
相关资源
相似解决方案