Today I will share how to forcefully close redis and restart it:
The specific code is as follows:
ps auxf|grep redis |grep -v grep|xargs kill -9 /usr/local/bin/redis-server /etc/redis.conf ps -ef | grep redis
Redis related introduction:
Redis (Remote Dictionary Server), the remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supports the network, can be memory-based and persistent, and provides multiple languages. API. Since March 15, 2010, the development of Redis has been hosted by VMware. Since May 2013, the development of Redis has been sponsored by Pivotal.
Related recommendations:redis database tutorial
The above is the detailed content of How to force redis to shut down and restart. For more information, please follow other related articles on the PHP Chinese website!