CentOS7源码安装Redis5.0.4非关系型数据库
源码安装redis-5.0.4
一、 下载redis
1、 需要连接网络
二、 案例(另一种安装方法)
[root@localhost ~]# wget http://download.redis.io/releases/redis-5.0.4.tar.gz
[root@localhost ~]# tar zxf redis-5.0.4.tar.gz
[root@localhost ~]# mv redis-5.0.4 /usr/local/redis #把解压好的包,移动指定位置
[root@localhost ~]# cd /usr/local/redis
[root@localhost redis]# ll #会看到如下这些文件或目录
|
-rw-rw-r--. 1 root root 99445 3月 19 00:21 00-RELEASENOTES -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;

到此完结!
CentOS7源码安装Redis5.0.4非关系型数据库的更多相关文章
- Debian系Linux源码安装Redis5.0.6
一,先在官网下载源码包:https://redis.io/download 二,解压源码包,并cd到解压后的目录: 三,执行make MALLOC=libc: 接着cd src[解压的目录里有这个子目 ...
- centos7源码安装vim8.0
centos 6和7通过yum安装的vim版本仍为7.4,若想尝鲜,可获取源码包编译安装. 准备工作 1.检查vim旧版本,若已存在,将其卸载. $ vim$ yum remove vim* -y 2 ...
- 在CentOs7源码安装mysql-5.6.35单实例数据库
首先安装依赖包,避免在安装过程中出现问题 [root@bogon liuzhen]# yum -y install gcc gcc-c++[root@bogon liuzhen]# yum -y in ...
- centos7源码安装Python3的前提条件
centos7源码安装Python3的前提条件: # yum -y install openssl-devel bzip2-devel expat-devel gdbm-devel readline- ...
- 源码安装 qemu-2.0.0 及其依赖 glib-2.12.12
源码安装qemu-2.0.0 下载源代码并解压 http://wiki.qemu-project.org/download/qemu-2.0.0.tar.bz2 .tar.gz 编译及安装: cd q ...
- CentOS7下编译安装redis-5.0.9
CentOS7下编译安装redis-5.0.9 本文地址http://yangjianyong.cn/?p=171转载无需经过作者本人授权 下载redis #code start wget https ...
- centos7源码安装mysql5.7.19
centos7源码包安装mysql5.7 5.7.20安装方法和5.7.19的一样. 1.安装前准备 清空环境.安装相应的软件包 1>关闭防火墙和SELinux 2>配置yum源(阿里云, ...
- Centos7源码安装mysql及读写分离,互为主从
Linux服务器 -源码安装mysql 及读写分离,互为主从 一.环境介绍: Linux版本: CentOS 7 64位 mysq版本: mysql-5.6.26 这是我安装时所使用的版本, ...
- CentOS下源码安装vsftpd-3.0.0,并设置指定用户访问指定目录(附带完整配置文件)
1.卸载系统已经存在的ftp服务器 因为是源码安装,所以不能通过rpm -qa的方式查看是否已经安装ftp服务器,可以通过find / | grep vsftp*方式查看系统中存在哪些与vsftpd相 ...
随机推荐
- vbscript--FileSystemObject详解
https://blog.csdn.net/superbirds/article/details/6762748 FSO是FileSystemObject 或 Scripting.FileSystem ...
- [Linux] cronjob指定用户运行脚本,并按日期区分输出日志
废话不多说,直接上代码,在root的cronjob,指定nginx用户跑cronjob */1 * * * * su nginx -c "/usr/local/scripts/goods.s ...
- ASP.Net validator
<asp:TextBox ID="txtTransitDays" runat="server"></asp:TextBox> <a ...
- Git如何切换账户
如果你不知道现在本地Git用的帐号是什么,你可以输入 git config user.name 查看用户名 git config user.email 查看用户邮箱 修 ...
- Gradle之dependenciens的各种依赖说明
implementation:对于使用了该命令编译的依赖,对该项目有依赖的项目将无法访问到使用该命令编译的依赖中的任何程序,也就是将该依赖隐藏在内部,而不对外部公开.api 完全等同于compile指 ...
- springboot2.0以后的junit
只需要引入: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactI ...
- matlab 双坐标折线图画法
%%各时段电量需求 clc close all clear all cost_gd = [2200 1800 3800 4600]; cost_bj = [2.7 2.2 1.8 3.6]; cost ...
- 浅谈SQL Server事务与锁(上篇)
一 概述 在数据库方面,对于非DBA的程序员来说,事务与锁是一大难点,针对该难点,本篇文章试图采用图文的方式来与大家一起探讨. “浅谈SQL Server 事务与锁”这个专题共分两篇,上篇主讲事务及 ...
- 6. 运行Spark SQL CLI
Spark SQL CLI可以很方便的在本地运行Hive元数据服务以及从命令行执行任务查询.需要注意的是,Spark SQL CLI不能与Thrift JDBC服务交互.在Spark目录下执行如下命令 ...
- JavaWeb项目之多条件过滤
相信很多同学在学习java基础之后,面对各种项目还是相当头疼,那今天我将手把手教你学会JavaWeb项目中的多条件过滤,希望你能在与我实战的过程中积累经验,更进一步. 分页查询 需求分析:在列表页面中 ...