Home > Database > Redis > body text

How to restart the redis process

Release: 2019-07-04 14:00:20
Original
19401 people have browsed it

How to restart the redis process

If redis is installed using apt-get or yum install, you can directly stop/start/restart redis through the following commands

/etc/init.d/redis-server stop 
/etc/init.d/redis-server start 
/etc/init.d/redis-server restart
Copy after login

If it is installed through source code redis, you can restart redis through the shutdown command of the redis client program redis-cli

1.redis shutdown

redis-cli -h 127.0.0.1 -p 6379 shutdown
Copy after login

2.redis startup

redis-server
Copy after login

If none of the above methods successfully stop redis, you can use the ultimate weapon kill -9

For more Redis related knowledge, please visit the Redis usage tutorial column!

The above is the detailed content of How to restart the redis process. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template