linux install non-root installation redis

1, in the Linux environment to download gcc, by source installation was installed by cc compiler. It was time to download gcc. This time using the root user to install.

   yum -y install  gcc

2, then the compiler is required jemalloc. Download jemalloc was compiled. Using yum install was added at a warehouse source. End change warehouse source, you can use this time

 yum install  jemalloc

Here in this way is used to compile source package jemalloc.

(1) Source download installation package.

      wget   https://github.com/jemalloc/jemalloc/releases/download/4.2.1/jemalloc-4.2.1.tar.bz2

(2) extracting jemalloc-4.2.1.tar.bz2.

     takes -jxvf jemalloc-4.2.1.tar.bz2

   If an error decompression, decompression is not successful, execute yum -y install bzip2 to support bzip2

    $cd  jemalloc-4.2.1

    ./Configure --prefix $ = / usr / local / jemalloc (jemalloc a new folder path in non-root user)

    $ make && make install 

3. Next, enter the path under the redis, compile the source code of the redis.

     $ Cd-repeat 5.0.7

     $  The make MALLOC = / usr / local / jemalloc / lib (just above jemalloc file folder path under lib)

     $ Make PREFIX = / usr / local / redis (built himself a redis file in a non-root user directory folder) install (installation directory is specified) 

After completing redis into the folder, enter into the redis-server execution bin directory.

 

 

 

 

Guess you like

Origin www.cnblogs.com/Hackerman/p/12398248.html