redis安装
201 2019-03-26 12:04:49 wget http://download.redis.io/releases/redis-4.0.6.tar.gz
202 2019-03-26 12:05:12 tar -zxvf redis-4.0.6.tar.gz
203 2019-03-26 12:05:28 yum install gcc
204 2019-03-26 12:05:52 cd redis-4.0.6
205 2019-03-26 12:06:25 make MALLOC=libc #编译安装
206 2019-03-26 12:07:32 cd src && make install #将/usr/local/redis-4.0.6/src目录下的文件加到/usr/local/bin目录
207 2019-03-26 12:09:19 ls
208 2019-03-26 12:10:22 find name redis.conf
209 2019-03-26 12:10:33 find --name redis.conf
210 2019-03-26 12:10:45 find redis.conf \
211 2019-03-26 12:10:51 find redis.conf /
212 2019-03-26 12:11:37 find name redis.conf /
213 2019-03-26 12:19:07 cd redis/
214 2019-03-26 12:19:51 whereis redis
215 2019-03-26 12:20:29 history
216 2019-03-26 12:20:54 pwd
217 2019-03-26 12:21:04 cd ..
218 2019-03-26 12:21:07 ls
219 2019-03-26 12:21:22 vim redis.conf #修改daemonize yes
220 2019-03-26 12:22:07 cd src/
221 2019-03-26 12:22:23 ./redis-server
222 2019-03-26 12:23:03 ./redis-server /usr/local/redis-4.0.6/redis.conf
223 2019-03-26 12:23:35 cd /usr/local/
224 2019-03-26 12:23:37 ls
225 2019-03-26 12:23:42 cd ..
226 2019-03-26 12:23:51 cd ~
227 2019-03-26 12:23:55 ls
228 2019-03-26 12:24:22 cp redis-4.0.6 /usr/local/
229 2019-03-26 12:24:29 cp redis-4.0.6 /usr/local/ -r
230 2019-03-26 12:25:02 cd /usr/local/redis-4.0.6/
231 2019-03-26 12:25:08 cd src/
232 2019-03-26 12:25:16 ./redis-server /usr/local/redis-4.0.6/redis.conf
233 2019-03-26 12:25:35 ps -aux | grep redis
234 2019-03-26 12:25:49 sudo kill -9 2917
235 2019-03-26 12:26:14 cd /etc/
236 2019-03-26 12:26:21 mkdir redis
237 2019-03-26 12:26:40 cp /usr/local/redis-4.0.6/redis.conf /etc/redis/6379.conf
238 2019-03-26 12:27:02 cp /usr/local/redis-4.0.6/utils/redis_init_script /etc/init.d/redisd
239 2019-03-26 12:27:19 chkconfig redisd on
240 2019-03-26 12:28:25 vim /etc/init.d/redisd
241 2019-03-26 14:05:37 # chkconfig: 2345 90 10
242 2019-03-26 14:05:41 # description: Redis is a persistent key-value database
243 2019-03-26 14:05:51 vim /etc/init.d/redisd
244 2019-03-26 14:06:47 vim /etc/init.d/redisd
245 2019-03-26 14:07:19 vim /etc/init.d/redisd
246 2019-03-26 14:08:13 chkconfig redisd on
247 2019-03-26 14:08:27 service redisd start
470 2019-03-27 14:50:00 Vim ~/.bash_profile
471 2019-03-27 14:50:16 vim ~/.bash_profile
472 2019-03-27 14:51:13 redis
473 2019-03-27 14:51:24 Source ~/.bash_profile
474 2019-03-27 14:51:28 source ~/.bash_profile
475 2019-03-27 14:51:31 redis
476 2019-03-27 14:52:24 redis-cli
477 2019-03-27 14:53:13 redis-server /etc/redis.conf
478 2019-03-27 14:53:39 vi /etc/redis.conf
479 2019-03-27 14:53:57 redis-cli
480 2019-03-27 14:54:10 cd ~
481 2019-03-27 14:54:12 redis-cli
482 2019-03-27 14:55:10 cd redis-4.0.6/src/
483 2019-03-27 14:55:14 ./redis-server /usr/local/redis-4.0.6/redis.conf
484 2019-03-27 14:55:52 ./redis-server
485 2019-03-27 14:57:40 whereis redis
486 2019-03-27 14:58:10 rm -rf /etc/redis.conf
487 2019-03-27 14:58:12 whereis redis
488 2019-03-27 14:59:41 redis-cli -p 6380
489 2019-03-27 15:01:03 redis-server /etc/redis/6379.conf
490 2019-03-27 15:01:11 redis-cli
491 2019-03-27 15:02:17 ls
492 2019-03-27 15:02:29 redis-cli
493 2019-03-27 15:02:49 reboot
494 2019-03-27 15:04:06 redis-cli
参考https://www.cnblogs.com/zuidongfeng/p/8032505.html