Redis Linux installation and deployment, use Remote Tools connection.

Today, mainly on how to use linux system linux install and use a remote deployment tool to connect redis. linux bloggers use is centOS, under the windows installation is relatively simple, so do not make too much exposition.

1. First log in as root user, enter the usr folder.

image

2. Create a new folder soft, soft and enter the folder.

image

3. Because redis using c language, so to install it build environment.

Use the command yum install gcc-c ++

4. Download redis installation package.

wget http://download.redis.io/releases/redis-5.0.5.tar.gz

image

The extract the installation package.

tar -zxvf redis-5.0.5.tar.gz

image

6. redis proceeds to extract the packet, compiler installation.

cd-repeat 5.0.5

make

After compiling this prompt appears indicating success.

image

The following folders and files will appear in the directory

image

7. In the current folder two new bin etc directory, and move the corresponding file to the folder. (Easy to start using redis)

mkdir bin etc

mv redis.conf /usr/soft/redis-5.0.5/etc/

cd src/

mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-cli redis-server /usr/soft/redis-5.0.5/bin/

image

8.cd /usr/soft/redis-5.0.5/etc/ to modify the configuration file redis.conf, edit the configuration.

force redis.conf

1) The daemonize no change daemonize yes // represent the background to run.

image

2) bind 127.0.0.1 release, other ip address may be arranged, with the last subject. // Bind ip


3) the protected-mode yes amended as protected-mode no // Remotely

image

9. Start services.

cd to the bin directory under redis

./redis-server /usr/soft/redis-5.0.5/etc/redis.conf

image

10. A remote connection, using the connection test redis-cli.

./redis-cli -h 127.0.0.1 -p 6379

image

Use RedisDesktopManager connection test.

To modify the tec / redis.conf

bind to restart the service server ip

Guess you like

Origin www.cnblogs.com/wudi521/p/12196039.html