Home > Database > Redis > body text

Linux checks whether redis is started

anonymity
Release: 2019-06-04 16:20:00
Original
18344 people have browsed it

Redis is a key-value storage system. Similar to Memcached, it supports relatively more stored value types, including string (string), list (linked list), set (set), zset (sorted set - ordered set) and hash (hash type). These data types all support push/pop, add/remove, intersection, union, difference, and richer operations, and these operations are all atomic. On this basis, redis supports various different ways of sorting. Like memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-slave) synchronization is achieved.

Linux checks whether redis is started

linux Check whether redis is started

make

make PREFIX=/usr/local/redis install

mkdir /etc/redis/

cp redis.conf /etc/redis/

Open the redis.conf file and modify daemonize yes to run in the background

vim /etc/redis/redis.conf

Use the configuration file to start the redis service

./redis-server /etc/redis/redis.conf

How to check whether the redis service starts normally?

Use ps to view or netstat

ps aux | grep redis-server

netstat -tunple | grep 6379

The above is the detailed content of Linux checks whether redis is started. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!