转自:https://blog.csdn.net/hzlarm/article/details/99432240
1.命令
在线安装:
sudo apt-get install redis-server
查看使用的默认端口:
ps -aux|grep redis
查看redis服务器的状态:
sudo /etc/init.d/redis-server status
重启服务器:
sudo /etc/init.d/redis-server restart or sudo service redis-server restart or sudo redis-server /etc/redis/redis.conf