Redis start, stop, view

Source: Internet
Author: User

Ps-ef |grep Redis Check if the background process is running



#检测6379端口是否在监听

NETSTAT-LNTP | grep 6379

#使用 ' redis-cli ' client detects a connection is normal

./redis-cli

Stop it

#使用客户端

REDIS-CLI shutdown

#因为Redis可以妥善处理SIGTERM信号, so direct kill-9 is also possible.

Kill-9 PID

If execution causes the Redis client to be disconnected or not connected, you can restart Redis and open the file directory to perform the startup./etc/init.d/redis-server as follows:

./etc/init.d/redis-server Start

./etc/init.d/redis-server Stop

./etc/init.d/redis-server Restart


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.