站长图库向大家介绍了Linux,开启关闭redis,Linux命令等相关知识,希望对您有所帮助
首先连接xshell,然后执行如下命令即可:
service network restar #重启网络ip addr #查找ip[root@localhost ~]# cd /usr/local/redis[root@localhost redis]# ./bin/redis-server ./redis.conf [root@localhost redis]# ./bin/redis-cli 127.0.0.1:6379> exit[root@localhost redis]# ./bin/redis-cli shutdown[root@localhost redis]# ps -ef | grep -i redis