源碼安裝redis-5.0.4redis
1、 下載redisvim
一、 須要鏈接網絡網絡
2、 案例(另外一種安裝方法)spa
[root@localhost ~]# wget http://download.redis.io/releases/redis-5.0.4.tar.gzserver
[root@localhost ~]# tar zxf redis-5.0.4.tar.gzblog
[root@localhost ~]# mv redis-5.0.4 /usr/local/redis #把解壓好的包,移動指定位置ci
[root@localhost ~]# cd /usr/local/redisget
[root@localhost redis]# ll #會看到以下這些文件或目錄源碼
-rw-rw-r--. 1 root root 99445 3月 19 00:21 00-RELEASENOTESit -rw-rw-r--. 1 root root 53 3月 19 00:21 BUGS -rw-rw-r--. 1 root root 1894 3月 19 00:21 CONTRIBUTING -rw-rw-r--. 1 root root 1487 3月 19 00:21 COPYING drwxrwxr-x. 6 root root 124 3月 19 00:21 deps -rw-rw-r--. 1 root root 11 3月 19 00:21 INSTALL -rw-rw-r--. 1 root root 151 3月 19 00:21 Makefile -rw-rw-r--. 1 root root 4223 3月 19 00:21 MANIFESTO -rw-rw-r--. 1 root root 20555 3月 19 00:21 README.md -rw-rw-r--. 1 root root 62155 3月 19 00:21 redis.conf -rwxrwxr-x. 1 root root 275 3月 19 00:21 runtest -rwxrwxr-x. 1 root root 280 3月 19 00:21 runtest-cluster -rwxrwxr-x. 1 root root 281 3月 19 00:21 runtest-sentinel -rw-rw-r--. 1 root root 9710 3月 19 00:21 sentinel.conf drwxrwxr-x. 3 root root 4096 3月 19 00:21 src drwxrwxr-x. 10 root root 167 3月 19 00:21 tests drwxrwxr-x. 8 root root 4096 3月 19 00:21 utils |
[root@localhost ~]# make && make install #編譯安裝
[root@localhost redis]# ll /usr/local/bin/ #查看會有這些redis腳本
-rwxr-xr-x. 1 root root 4365136 8月 31 21:32 redis-benchmark -rwxr-xr-x. 1 root root 8100624 8月 31 21:32 redis-check-aof -rwxr-xr-x. 1 root root 8100624 8月 31 21:32 redis-check-rdb -rwxr-xr-x. 1 root root 4805480 8月 31 21:32 redis-cli lrwxrwxrwx. 1 root root 12 8月 31 21:32 redis-sentinel -> redis-server -rwxr-xr-x. 1 root root 8100624 8月 31 21:32 redis-server |
可檢測目錄文件;(可選)
[root@localhost redis]# yum -y install tcl
[root@localhost redis]# make test
[root@localhost redis]# vim tests/unit/memefficiency.tcl
修改:
將150和100的值改大點,如1500,1000,從新執行make test;
到此完結!