Installation and Use of redis in linux, linuxredis

Source: Internet
Author: User

Installation and Use of redis in linux, linuxredis
Zookeeper redis: 1. download: wget Repository :. /redis-server .. /redis. after config, you can add a configuration file to make the server run in the background and become a daemon. 4. log on to the client, also in the src directory. /redis-cli can also telnet the ip port, but there is a $25 output key-value pair. when writing a program, you need to use redis APIs and methods to produce a static library file libhiredis under the hiredis directory. a. Put the header file in/usr/include, the static library file in/lib, and add-lhiredis to compile the file, dynamic library is also similar to the call method C language connection inserted redis instance: http://blog.csdn.net/hj19870806/article/details/8724907 http://yaocoder.blog.51cto.com/2668309/1297031

# Include <stdio. h> # include <stdlib. h> # include <stddef. h> # include <stdarg. h> # include <string. h> # include <assert. h> # include 


Memcache: http://php.net/manual/zh/book.memcache.php http://docs.linuxtone.org/ebooks/NOSQL/memcached/memcached--%E9%BB%91%E5%A4%9C%E8%B7%AF%E4%BA%BA.pdf
Gcc source code compilation: http://www.cnblogs.com/codemood/archive/2013/06/01/3113200.html: http://ftp.gnu.org/GNU ftp Server Download
How can I restart redis? Run the command in linux instead of kill.

/Etc/init. d/redis_XXX stop
/Etc/init. d/redis_XXX start

In linux, the installation software is generally in rpm format or is it better to install targz?

Let's talk about the tar.gz source code class first. In this case, you must manually install and compile the software, such as gcc g ++. Generally, configure, make & make install.

The second is the file ending with bin. This type of software is generally developed by large companies, such as jdk realplayer. It only needs to run the installation file, which is similar to windows software installation.

The other is the ease of installation of various packaged software packages such as rpm deb. It is best to use a management software for system management. In this way, you do not need to maintain the dependency.

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.