Ubuntu Uninstall/install Redis

Source: Internet
Author: User
Tags benchmark install redis

Ubuntu Uninstall Redis

1. Uninstalling the Software

Apt-get Remove Redis

2. Clear the Configuration

Apt-get Remove--purge Redis

3. Delete residual files

Find/-name Redis

--general settings are as follows

RM-RF var/lib/redis/

Rm-rf/var/log/redis

rm-rf/etc/redis/

rm-rf/usr/bin/redis-*

Ubuntu installation Redis

0.0 Initialization File Parts

Mkdir/usr/local/redis

Mkdir/etc/redis

1. Download the installation file

wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz

2. Unzip

Tar xzf redis-2.6.14.tar.gz

3. copy File

Cp-r redis-2.6.14/*/usr/local/redis/

4. LS View

ls/usr/local/redis/

--0-releasenotes BUGS contributing COPYING deps INSTALL Makefile MANIFESTO

--readme redis.conf runtest sentinel.conf src tests utils

5. Go to the installation directory

cd/usr/local/redis/

6. Compiling, installing

Make

Make Test

Make install

7. View the compiled command file

ls/usr/local/bin/redis-*

--/usr/local/bin/redis-benchmark performance testing tools, such as: Redis-benchmark-n 1000000-c 50, 50 clients, concurrent 1 million sets/gets queries

--/USR/LOCAL/BIN/REDIS-CHECK-AOF Update Log Check

--/usr/local/bin/redis-check-dump Local Data file check

--/USR/LOCAL/BIN/REDIS-CLI command-Line Operations tool

--/usr/local/bin/redis-server Server Program

8. Modify the configuration file

CP redis.conf/etc/redis/

Ls/etc/redis/redis.conf

--base Config Basic configuration--

--daemonize Yes to open the background process

--pidfile pid File

--bind Binding IP

--unixsocket

--timeout connection timeout (seconds)

--loglevel Log Level

--logfile log files

--databases Database Total

--snapshotting Snapshot Configuration--

--save <seconds> <changes> n seconds with M update, save

--rdbcompression Yes to turn on compression mode

--dbfilename Data file name

--dir Data Catalog

--replication Master-Slave Replication--

--slaveof <masterip> <masterport>

--masterauth <master-password>

--slave-serve-stale-data Yes

--security Security Verification--

--requirepass foobared Password

--limits Range Control--

--maxclients

--maxmemory

--maxmemory-policy VOLATILE-LRU

--maxmemory-samples 3

--append only mode log append modes--

--appendonly No

--no-appendfsync-on-rewrite No

--# Appendfsync always read and write will be persistent, low efficiency

--appendfsync everysec per second, recommended

--# Appendfsync No is fully dependent on the operating system, performance is the best, persistence is not guaranteed

--virtual memory Virtual RAM--

--vm-enabled No

--vm-swap-file/var/lib/redis/redis.swap

--vm-max-memory 0

--vm-page-size 32

--vm-pages 134217728

--vm-max-threads 4

--advanced Config Advanced Configuration--

--No research

9. Start the configuration

Redis-server/etc/redis/redis.conf

10. Turn off Redis

REDIS-CLI shutdown

Redis-cli-p 6379 shutdown

The internet finally found a more detailed article about the uninstall and installation of the / original Address

Ubuntu Uninstall/install Redis

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.