linux installation configuration and use redis
- 2020-06-07 05:30:28
- OfStack
1, download the source code, decompress and compile the source code.
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
2. After compilation, there are four executables in the Src directory: redis-ES7en, ES8en-ES9en, ES10en-ES11en and redis.conf (conf may be in the same directory as src). Then copy it to a directory.
mkdir /usr/redis
cp redis-server /usr/redis
cp redis-benchmark /usr/redis
cp redis-cli /usr/redis
cp redis.conf /usr/redis
cd /usr/redis
3. Start Redis service.
$ ./redis-server redis.conf
4. Set redis to run in the background, open ES31en.conf and set daemonize to yes