linux7安装redis7.2.3以及使用ssh方式远程连接redis教程

Redis未授权访问漏洞详解(全面) Redis是一款内存高速缓存的数据库,是一款K-V型数据库,它的所有键值都是用字典来存储的。其中它的value支持多种数据类型,包括String、List、Set、Zset和Hash。Redis默认情况下绑定在127.0.0.1:6379,在没有进行采用相关的策略,如添加防火墙规则避免其他非信任来源ip访问,就会将Redis服务暴露在公网上;并且Redis默认情况是空密码连接在服务器以root身份运行Redis时这将导致任意用户可以访问目标服务器下未授权访问Redis以及读取Redis数据。 阅读详情

1.下载redis.tar.gz包  地址:Download | Redis

2. 上传到linux服并解压

cd /home/local
tar -zxvf redis-7.2.3.tar.gz

 3.编译并设置安装目录

  安装前先安装python3:linux7安装python3.12.1教程-优快云博客

yum install gcc-c++ # 安装编译所需环境
cd redis-7.2.3/
make
make PREFIX=/usr/local/redis install
cd /usr/local/redis/
ll

 4.复制redis.conf配置文件到安装目录并修改为以后端模式启动

find / -iname redis.conf
cp /home/local/redis-7.2.3/redis.conf /usr/local/redis/
ll
vim redis.conf # 进入文件编辑模式
按i
设置daemonize为yes
按esc
输入:wq按回车  # 保存并退出编辑

5.启动redis并查看进程

./bin/redis-server ./redis.conf
ps aux|grep redis

 6.客户端访问redis

./bin/redis-cli
./bin/redis-cli -h localhost -p 6379 # 这样也可以

# redis命令
select 1  #切换到数据库1,默认数据库为0
set test 1 #设置key为test,值为1的数据
keys * 查看所有key

7.关闭redis

kill 进程ID  # 强杀可能造成数据丢失

./redis-cli shutdown # 正常关闭

8.加入开机启动项

vim /etc/rc.local
按i
/usr/local/redis/bin/redis-server /usr/local/redis/redis.conf
按esc
输入:wq按回车  #保存退出

9.使用redis desktop manager工具以ssh方式远程连接redis

 

Redis未授权访问之ssh免密登录(踩坑) 关于Redis漏洞的详解及写shell、getshell的利用请出示门票:传送门 利用原理 利用 Redis 自身的提供的 config 命令,可以进行写文件操作,攻击者可以成功将自己的公钥写入目标服务器的 /root/.ssh 文件夹的authotrized_keys 文件中,进而可以直接使用对应的私钥登录目标服务器。 利用 实验场景 Redis服务器(靶机):Ubuntu 16.4 ----- 192.168.101.46 Redis客户机(攻击机):Ubuntu 16.4 ----- 192.168. 阅读详情

相关推荐

redis-7.2.3.zip

LInux版本最新redis-7.2.3.zip

redis7.2.3一键安装部署脚本

【代码】redis一键安装部署脚本。

2301_76147576的博客 373

深入解析CRC-16校验算法及其Verilog硬件实现

本文深入解析了CRC-16校验算法的原理及其在Verilog中的硬件实现方法。从基础的模2除法到串行和并行实现方案,详细介绍了LFSR结构、状态转移分析以及工业应用中的优化技巧。通过实际案例和性能对比,帮助开发者理解如何选择适合的CRC实现方案,确保数据传输的可靠性。

yolo5detector的博客 323

linux安装redis

将redis-7.2.3下的redis.conf文件单独复制到 etc目录下,方便后续配置,若是出错,也方便后续到相对应的位置复制修改。可以直接启动,但是我们配置了对应文件,所以可以采用指定配置文件启动,刚才我们是将文件复制在/etc目录下,所以可以执行以下命令开启。3.上传到对应的路径下,也可以放到一个新的目录。比如在/usr/local/redis中,进入redis目录,解压上传的文件。7.编辑复制的redis.conf的文件。或者找到对应的连接,然后执行语句。这一行,去掉注释,并将。

2301_80768157的博客 418

光耦继电器电路分析

光耦电路的分析笔记

MingYue_SSS的博客 6890

[AbutionGraph] 报表制作-使用Grafana动态可视化知识图谱指标

使用开源报表可视化工具Grafana实时监控时序知识图谱数据仓库AbutionGraph中的数据,实时性报表查询, 满足单次百万千万级的数据查询,毫秒级查询延迟,亚秒级对千亿数据量汇总统计,每日过亿报表查询/多维分析/日志分析等数据指标...

图特摩斯科技-博客 4281

一文学会 CentOS7 安装配置 Redis

CentOS7 安装 Redis 步骤 1、安装 gcc 依赖 2、上传并解压 redis 安装包 3、进入 redis 解压目录 4、安装并指定安装目录 5、启动服务 5.1、前台启动 5.2、后台启动 6、开机自启设置 7、重启系统,测试Redis

不迁怒,不贰过。小知识,大智慧。 3336

基于MicroBlaze与LWIP的FPGA以太网通信实战指南

本文详细介绍了基于MicroBlaze软核处理器与LWIP协议栈的FPGA以太网通信实现方案。通过Vivado工具链配置硬件设计,结合LWIP轻量级TCP/IP协议栈优化,提供高效、低成本的嵌入式网络解决方案,适用于工业控制等场景。文章包含硬件设计、软件配置及常见问题排查等实战指南。

weixin_29290863的博客 534

【Linux从入门到精通二】在虚拟机中安装与远程连接Linux:多平台环境搭建详解

远程连接是指通过网络从本地设备(如你的 PC 或 Mac)连接到远程 Linux 服务器。:一种通过加密的方式进行远程登录的协议,主要用于 Linux 系统。:Windows 系统的远程桌面协议,Linux 上也有类似工具。VNC:基于图形界面的远程连接方式,允许用户通过图形界面控制远程主机。快照是指虚拟机在某个时间点的系统状态的完整备份。无论是文件、配置,还是程序状态,都可以通过快照快速恢复。

私聊前往站内信:https://i.youkuaiyun.com/#/msg/chat/weixin_44976692 1万+

S7-1200与ABB机器人进行SOCKET通信的具体方法示例

S7-1200与ABB机器人进行SOCKET通信的具体方法示例

Robot_PLC_HMI_Automation 3301

【人工智能 Open AI】程序员怎样提升研发效率?从技术、业务、项目管理等等多个方面来阐述。

程序员要想提升研发效率,需要从技术、业务、项目管理等多方面着手,多靠工具配合实践实现,从而提升研发效率。

AI天才研究院 5529

在springboot中通过ssh连接远程服务器的mysql和redis

在springboot使用ssh连接远程linux服务器的mysql和redis

qq_39635350的博客 1983

LLCC68芯片系统架构与LoRa驱动开发核心解析

LoRa射频收发器是低功耗广域物联网(LPWAN)的关键组件,其本质是集成了调制解调器、协议引擎、数据缓冲区与电源管理的专用SoC。理解其工作模式状态机(Sleep/Standby/TX/RX)与SPI主机接口时序规范,是实现稳定通信的基础。LLCC68通过寄存器映射与命令集双接口抽象硬件控制,支持LoRa扩频调制与FSK兼容模式,具备高链路预算(157 dB)和DC-DC/LDO动态电源切换能力。典型应用场景包括远距离传感器节点、智能表计与工业无线监测系统。本文深入剖析LLCC68的信号链路径、中断机制与

weixin_29859471的博客 284

linux中安装redis步骤以及本地客户端连接远程redis服务步骤

刚刚在linux服务器上面安装了redis,安装成功。记下来和各位交流一下,哪里配置的不对可以指出来 一、redis安装步骤 1.linux服务器支持wget安装。直接在安装目录下输入:wget http://download.redis.io/releases/redis-5....

777

【车载以太网】【架构】整体架构与协议标准

车载以太网架构图 应用层:DHCP /SOMEIP/DoIP/XCP/UDPNM 传输层:TCP/IP 网络层:IPv4/IPv6/ARP/ICMP 链路层:IEEE Ethernet MAC+VLAN 物理层:Ethernet PHY: 100BASE-T1/1000BASE-T1/100BASE-Tx

专注汽车软件开发、AutoSAR、车载以太网、SOA、EE架构。 8358

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Linux与macOS下Git安装及SSH配置教程

git bash报错:Permission denied, please try again。经排查是ssh没有配置我的key,所以就借着这篇文章整理了一下关于Git的安装以及SSH配置过程。

禅与计算机程序设计的艺术 6881

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

Linux下如何安装Redis及Another Redis Desktop Manager工具的简单使用

现在这个官方已经有免费版了,需要的小伙伴可以访问。打开软件,点击左上角配置可以配置语言,字体等。点击新建连接,添加Redis相关设置。勾选SSH连接服务器,添加连接信息。想下载历史版本的话可以访问。下载,邮箱注册一下就可使用。大功告成,连接成功。

每天就学一点点的博客 3031

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

linux安装redis及解决无法远程连接的问题

首先创建安装目录 # mkdir /usr/local/redis 下载redis压缩包 wget http://download.redis.io/releases/redis-4.0.2.tar.gz 解压redis的压缩文件 tar -zxvf redis-4.0.2.tar.gz 进入安装文件夹进行编译 [root@bruce-host redis-4.0.2]# cd sr...

dxm809的博客 1007

linux-redis安装连接及密码设置

文章目录redis安装远程连接redis设置redis连接密码 redis安装 下载 wget http://download.redis.io/releases/redis-3.0.4.tar.gz 或者本地上传 解压, 直接gz包解压,就会解压并创建对应redis文件目录 我这是创建了redis目录,解压到此(个人习惯) tar -zxvf redis-3.2.12.tar.gz -C /redis 编译安装、 切换至程序目录,并执行make命令编译: 3.1. 进入解压后的redis

qq_45205994的博客 3117

在kali linux中redis的配置和基本使用

关于redis再kali linux中的基本配置和使用

m0_59145816的博客 2029

超简单的linux安装redis及解决无法远程连接的问题

1、新建redis目录 进入到cd usr/local路径,mkdir redis 新建redis目录 2、下载安装包,输入以下命令 wget http://download.redis.io/releases/redis-4.0.2.tar.gz 3、解压安装包 解压到当前目录即可: tar -zxvf redis-4.0.2.tar.gz 如果要指定路径: tar ...

andwey的博客 1897

Linux小白也能懂的Redis安装图文教程

作为一个刚开始接触Linux的新手,第一次安装Redis时确实有点懵。下面我就用最直白的方式,分享我的Redis安装经验。它提供了现成的Redis环境,无需自己安装配置,打开就能用,特别适合快速测试和小项目开发。我试过他们的在线编辑器,响应速度很快,还能一键部署Redis应用,对新手特别友好。记住,学习Linux和Redis最重要的是多动手实践。连接上服务器后,我们就可以开始安装Redis了。:可能是防火墙阻止了Redis端口(6379)如果你是开发人员想快速体验Redis,可以试试。

EmeraldEagle36的博客 687

Linux系统环境安装使用redis+简单的java连接redis

Linux系统环境安装redis1. 前言2. 搭建环境2.1 虚拟机2.2 Linux系统2.3 SSH客户端3. CentOS安装Redis3.1 安装环境3.2 Redis安装4. Redis的启动4.1 前端模式启动4.2 后端模式5. Redis停止6. Redis使用6.1 连接客户端6.2 向Redis服务器发送命令7. Jedis 入门7.1 Jedis介绍7.2 Java连接Redis 1. 前言 因为redis官方只提供linux版本,也就是说redis官方就建议redis安装在lin

weixin_44356108的博客 483

SSH远程连接服务(五)

(1)echo nneettssttaatt --llnnttpp|sed -r ‘s#(.)(.)#\1#g’ 去重(2)网络设备用telnet不用加密,网络的设备都是内部网络调试的。xshell工具还是调用底层的ssh命令 ssh 10.0.0.41 22(3) 在Linux的客户端使用命令:ssh 172.16.1.31 远程登录的用户是谁,取决于当前用户是谁建议还是加上ssh root@172.16.1.31(4)对外访问的服务器尽量改ssh的端口号,内网的为了方便。

董坤的博客 2983
上一篇: linux7安装python3.12.1教程
下一篇: 在linux服上使用nginx+tomcat部署若依前后端分离版本(RuoYi-Vue)
cherishSpring
博客等级 码龄11年 134粉丝 172原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值