Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ RedHat Redis Linux installation     - SaltStack installation and testing (Server)

- shell script: LVS start simple script (Server)

- Oracle 10g relations with the constraint of column properties NULLABLE (Database)

- CentOS achieve trash mechanism (Linux)

- Ubuntu 10.10 install Oracle 10g graphic tutorials (Database)

- Linux virtual memory and physical memory (Linux)

- Build Python3.4 + PyQt5.3.2 + Eric 6.0 development platform Ubuntu 14.04 (Server)

- Linux kernel modules related to the management Comments (Linux)

- Use window.name + iframe cross-domain access to data Detailed (Programming)

- ld.so.conf.d profile (Linux)

- Eclipse installs support for Java 8 (Linux)

- Into the Java keyword instanceof (Programming)

- Https (SSL / TLS) Detailed principles (Server)

- The execution order of Oracle WHERE condition is not from right to left (Database)

- Redis-2.8.17 installation and configuration process some errors (Linux)

- Squid proxy server configuration under Linux (Server)

- Linux ACL permissions (Linux)

- RMAN parameters of ARCHIVELOG DELETION (Database)

- RedHat command line and graphical interface switching (Linux)

- Embedded Linux to solve the problem in the time zone (Linux)

 
         
  RedHat Redis Linux installation
     
  Add Date : 2017-08-31      
         
       
         
  I use the Linux system is: RedHat

[Root @ infa ~] # wget http://download.redis.io/releases/redis-2.8.12.tar.gz

Tar xzf redis-2.8.12.tar.gz

[Root @ infa ~] # tar xzf redis-2.8.12.tar.gz

[Root @ infa ~] # cd redis-2.8.12

[Root @ infa redis-2.8.12] # ls

00-RELEASENOTES BUGS CONTRIBUTING COPYING deps INSTALL Makefile MANIFESTO README redis.conf runtest runtest-sentinel sentinel.conf src tests utils

[Root @ infa redis-2.8.12] # make

But this will be given the wrong translation, it seems because of the reasons for the system;

The solution is to add the compiler parameter settings, as follows:

[Root @ infa redis-2.8.12] # make CFLAGS = "- march = i686"

Compile successfully;

Start and run redis:

[Root @ infa redis-2.8.12] # src / redis-server

Open another terminal to run, redis client

[Root @ infa redis-2.8.12] # src / redis-cli

127.0.0.1:6379> set name chenzhou

OK

127.0.0.1:6379> get name

"Chenzhou"

127.0.0.1:6379>

Appendix 2: Redis Linux service as a boot
Here is one of the easiest ways to do this, preferably by writing a bootstrap script.
If you want to boot redis, we need to set the redis daemon background (if you do not set to start the background, the linux graphical interface will be stuck in a blank page), and redis only a startup parameter, is redis configuration file path. Redis default configuration file redis.conf redis installation directory. We can copy the file to the / etc directory
Shell code
1 [root @ localhost redis-2.6.14] # cp redis.conf / etc /
Redis default configuration file daemonize parameter value is no, on behalf of non-background start, so we need to modify the value of the parameter is yes.

After modifying daemonize parameters, redis will be able to start through the daemon, then the next step is to add redis linux boot service configuration, the specific steps are as follows:
Use the VI editor to open the Linux boot service configuration file, /etc/rc.local, and add the following line of code:
Shell code
2 / usr / local / redis-2.6.14 / src / redis-server /etc/redis.conf
Save after editing, and then restart the system on OK.
Stop the Redis service:
Shell code
3src / redis-cli shutdown
     
         
       
         
  More:      
 
- Java object serialization and deserialization (Programming)
- DOM event handlers add notes (Programming)
- Oracle table space is too large processing time (Database)
- Oracle 11g users to create, authorize and import dmp file (Database)
- PostgreSQL Source Customization: Online global read only (Database)
- Use rfkill soft-switching and Bluetooth wireless capabilities in Linux (Linux)
- The Linux C truncate function clears the file notes (Programming)
- Android official recommendation: DialogFragment create dialog (Programming)
- Command filter MySQL slow query log (Database)
- Role Object of registerNatives () method (Programming)
- Compile Android libwebcore.so error occurs when solving (Programming)
- Android Custom View password box example (Programming)
- Analysis: Little Notebook facing a major security threat secure online (Linux)
- Linux-- sub-volume compression and decompression (Linux)
- Compile and install Redis and register as a system service under RedHat5.8 environment (Database)
- Differential test piece using MongoDB performance YCSB (Database)
- How to install Git on CentOS 7 (Linux)
- Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7 (Server)
- Linux C programming and Shell Programming in the development of practical tools similarities summary (Programming)
- Oracle 11g 10g induced into error (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.