Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Database \ RedHat Redis Linux installation     - Commonly used Linux system camouflage method (Linux)

- Boost notes --Thread - problems encountered in the initial use on Ubuntu (Programming)

- Android WebView use layman (Programming)

- Let your PHP 7 faster (GCC PGO) (Linux)

- Systemd on RHEL7 (Linux)

- Oracle 11g maintenance partitions - Adding Partitions (Database)

- Oracle inline view updates problems encountered (Database)

- Connect to the Oracle Database Help class (Database)

- Oracle 11g new features of the collection of multi-column statistics (Database)

- Thinking in Java study notes - everything is an object (Programming)

- Iptables in Ubuntu (Linux)

- CentOS yum source configuration (Linux)

- Binary search -Java achieve (Programming)

- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)

- ACL permissions Linux command (Linux)

- Install mono offline on CentOS (Server)

- RedHat Linux 9.0 under P4VP-MX motherboard graphics resolution of problems (Linux)

- Oracle SQL statement tracking (Database)

- Node.js simple interface server (Server)

- TNS-03505 name could not be resolved (Database)

  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> set name chenzhou

OK> get name


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
- How to install Bugzilla 4.4 on Ubuntu / CentOS 6.x (Linux)
- Will Laravel become the most successful PHP framework? (Programming)
- Apache POI Excel Document Processing (Linux)
- Linux System Getting Started Tutorial: Installing Brother printer in Linux (Linux)
- Android WebView use layman (Programming)
- How to prevent page five invisible killer (Linux)
- Linux, set and view environment variables (Linux)
- MySQL binlog automatic cleanup script (Database)
- RHEL5 multipath configuration (Linux)
- Linux (RHEL5) general optimization system security (Linux)
- ApacheDS configuration of users and user groups to achieve SSO (Server)
- Docker data container protection the pros and cons (Server)
- When should I use Angular 2 (Programming)
- Oracle 12C modify spfile path (Database)
- Chkconfig set boot start under Linux (Linux)
- Linux shell script to adjust the Task Scheduler (Linux)
- Android basics summary article (Programming)
- Ubuntu 14.04 Solution login interface infinite loop (Linux)
- Eight sorting algorithm implemented in Python (Programming)
- Getting Started with Linux system to learn: how to use tcpdump to capture TCP SYN, ACK and FIN packets (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.