Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Redis source code installation and start and stop

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Installation steps: $cd / opt $wget http://download.redis.io/releases/redis-3.2.8.tar.gz $tar xzf redis-3.2.8.tar.gz $cd redis-3.2.8$ make & & make install $sudo ln-s / opt/redis-3.2.8 / usr/local/redis $cp / usr/local/redis/utils/redis_init_script / etc/init.d/redis_6379 $vi / etc/init.d/redis _ 6379 REDISPORT=6379$ mkdir / etc/redis $mkdir-p / data/redis $cp / usr/local/redis/redis.conf / etc/redis/6379.conf $vi / etc/redis/6379.conf daemonize yes port 6379 dir / data/redis/

Installation instructions: make install command to copy the executable file in the src file of the installation directory to the / usr/local/bin directory, so that the executable file of redis can be directly called in the environment variable.

Launch: $redis-server / etc/redis/6379.conf or $/ etc/init.d/redis_6379 start

Stop: $redis-cli shutdown

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report