当前位置: 首页 > news >正文

入驻微信小程序多少钱河北seo技术

入驻微信小程序多少钱,河北seo技术,文化类网站建设,阿里云 网站托管🥰🥰🥰来都来了,不妨点个关注叭! 👉博客主页:欢迎各位大佬!👈 本期内容主要介绍如何在 Ubuntu 上安装 Redis5 一些碎碎念: 本来这期内容介绍如何在 Centos 安装 Redis …

🥰🥰🥰来都来了,不妨点个关注叭!
👉博客主页:欢迎各位大佬!👈

在这里插入图片描述
本期内容主要介绍如何在 Ubuntu 上安装 Redis5

一些碎碎念:

本来这期内容介绍如何在 Centos 安装 Redis 5, Centos8 安装 Redis 5 直接 yum install 即可安装,但是 Centos7 安装 Redis 5 比较麻烦,因为 yum 仓库中默认的 redis 版本比较老,是 3系列,可通过该命令,查看yum list | grep redis,写到一半,一些文档找不到啦,而且 Centos 官方已经说明,后续不再维护,又对比了一下,Ubuntu 安装 Redis5 是很方便的~ 因此,本期内容就介绍如何在 Ubuntu 上安装 Redis 5(就是可惜了之前写的!!!haha有点难受~)

文章目录

  • 1. 如何将阿里云服务器 Centos 系统换成 Ubuntu 系统
  • 2. 如何在 Ubuntu 上安装 Redis 5
    • 2.1 先切换到 root 用户
    • 2.2 使用 apt 命令搜索 redis 相关的软件包
    • 2.3 使用 apt 命令安装 redis
    • 2.4 手动修改配置文件, 修改IP
    • 2.5 重新启动服务器
    • 2.6 使用 redis 自带的客户端连接服务器

1. 如何将阿里云服务器 Centos 系统换成 Ubuntu 系统

(如果是 Ubuntu 系统,可直接略过该介绍~)

1)停止服务

在这里插入图片描述
在这里插入图片描述
2)点击更换操作系统

在这里插入图片描述
在这里插入图片描述
3)设置系统以及版本

在这里插入图片描述
4)完成,可以看到已经更换
在这里插入图片描述
在这里插入图片描述

2. 如何在 Ubuntu 上安装 Redis 5

2.1 先切换到 root 用户

有的小伙伴购买云服务器,已经是 root 用户了,如果不是,需要 su 命令切换到 root

2.2 使用 apt 命令搜索 redis 相关的软件包

apt search redis

在这里插入图片描述

2.3 使用 apt 命令安装 redis

apt install redis

在这里插入图片描述

有的小伙伴在这里可能会出现问题~
使用上述两个命令,可能没有什么结果,原因在于:没有更新软件源,使用如下命令,进行更新:

sudo apt update

在这里插入图片描述

使用该命令可以进行更新,再使用 apt 安装 redis

在这里插入图片描述
安装完成之后,一般来说,redis 在安装好后,已经自动被提起来了~ 使用 netstat -anp | grep redis 查看

在这里插入图片描述
可以看到 redis 的默认端口是 6379

同时也可以看到,IP 这里绑定了本机的 IP —— 127.0.0.1,只能当前主机上的客户端可以访问,跨主机就访问不了了,因此,需要手动修改 IP,使其它主机能够访问

2.4 手动修改配置文件, 修改IP

cd /etc/redis/

(一般 etc 目录中,放配置文件~)

在这里插入图片描述
redis.conf 这个是 redis 的配置文件,这里就包含了 redis 的相关功能的配置内容

修改两个地方:
1)bind 127.0.0.1 ::1 ----> bind 0.0.0.0 ::1
2)protected-mode yes ----> protected-mode no

(保护模式也需要修改,改为 no,保护模式也会影响跨主机访问)

在这里插入图片描述
具体修改步骤:

  • vim redis.config
  • 按 i,进入 insert 模式,修改 bind 和 protected-mode
  • 按 esc,再输入:wq,对修改进行保存退出

Q】对于 redis,是否需要配置密码
A】个人认为,可以不需要设置密码,因为安全性是相对的,我们的数据不值钱,价值并不大,是非常安全滴,如果设置密码还忘记了,那可就麻烦啦~

2.5 重新启动服务器

重新启动服务器,修改的配置才生效~ 输入下面命令,可以重启:service redis-server restart

在这里插入图片描述
如果没有任何提示,说明修改成功(没有提示才是最好滴),如果有提示,可能刚刚修改的配置有问题~

使用该命令查看:service redis-server status

在这里插入图片描述

2.6 使用 redis 自带的客户端连接服务器

使用 redis-cli,连接客户端

如何判断是否连通呢?
输入 ping,如果给出 pong,即为连通
在这里插入图片描述
Ctrl+d,退出 redis 客户端

以上就是在 Ubuntu 上安装 Redis 5的步骤~ 还是十分简单容易滴~

(小Tip:Tab 键补全还是很方便捏~)

✨✨✨本期内容到此结束啦~


文章转载自:
http://rainmaking.xtqr.cn
http://crissa.xtqr.cn
http://carrel.xtqr.cn
http://aeroflot.xtqr.cn
http://dying.xtqr.cn
http://octagonal.xtqr.cn
http://lexemic.xtqr.cn
http://ceramist.xtqr.cn
http://bands.xtqr.cn
http://scrannel.xtqr.cn
http://commensurate.xtqr.cn
http://fakement.xtqr.cn
http://interdeducible.xtqr.cn
http://humoral.xtqr.cn
http://easiest.xtqr.cn
http://mediate.xtqr.cn
http://precritical.xtqr.cn
http://radiopaque.xtqr.cn
http://sanceful.xtqr.cn
http://retardarce.xtqr.cn
http://clodhopping.xtqr.cn
http://sobbing.xtqr.cn
http://aecidium.xtqr.cn
http://dardanelles.xtqr.cn
http://bywork.xtqr.cn
http://holoparasite.xtqr.cn
http://harslet.xtqr.cn
http://umbilical.xtqr.cn
http://cheer.xtqr.cn
http://exhilaration.xtqr.cn
http://uniserial.xtqr.cn
http://timorous.xtqr.cn
http://rnwmp.xtqr.cn
http://kopeck.xtqr.cn
http://spermatozoa.xtqr.cn
http://diachylum.xtqr.cn
http://agamogenetic.xtqr.cn
http://semicomic.xtqr.cn
http://jacobin.xtqr.cn
http://merchantable.xtqr.cn
http://mantes.xtqr.cn
http://usnea.xtqr.cn
http://dishorn.xtqr.cn
http://prolepsis.xtqr.cn
http://electrolysis.xtqr.cn
http://barish.xtqr.cn
http://wastery.xtqr.cn
http://ramon.xtqr.cn
http://hypothenar.xtqr.cn
http://whatsoever.xtqr.cn
http://flexitime.xtqr.cn
http://romola.xtqr.cn
http://tiler.xtqr.cn
http://cowitch.xtqr.cn
http://rathaus.xtqr.cn
http://villain.xtqr.cn
http://biannulate.xtqr.cn
http://stonewall.xtqr.cn
http://xylograph.xtqr.cn
http://gametophore.xtqr.cn
http://smiercase.xtqr.cn
http://allyl.xtqr.cn
http://spoonbill.xtqr.cn
http://solanine.xtqr.cn
http://heathrow.xtqr.cn
http://hypanthial.xtqr.cn
http://nonofficial.xtqr.cn
http://especial.xtqr.cn
http://autocoherer.xtqr.cn
http://diazotroph.xtqr.cn
http://calorimetry.xtqr.cn
http://infective.xtqr.cn
http://filiale.xtqr.cn
http://annulment.xtqr.cn
http://lorryload.xtqr.cn
http://deringer.xtqr.cn
http://superacid.xtqr.cn
http://plumper.xtqr.cn
http://teth.xtqr.cn
http://glutinosity.xtqr.cn
http://semiticist.xtqr.cn
http://taraxacum.xtqr.cn
http://peasant.xtqr.cn
http://volkswil.xtqr.cn
http://granulate.xtqr.cn
http://antimatter.xtqr.cn
http://lobby.xtqr.cn
http://exactly.xtqr.cn
http://syncopation.xtqr.cn
http://cytochimera.xtqr.cn
http://autolatry.xtqr.cn
http://cannes.xtqr.cn
http://flatulent.xtqr.cn
http://healthiness.xtqr.cn
http://granddad.xtqr.cn
http://reimprisonment.xtqr.cn
http://gori.xtqr.cn
http://stepson.xtqr.cn
http://metonym.xtqr.cn
http://midterm.xtqr.cn
http://www.dt0577.cn/news/114053.html

相关文章:

  • 最专业的网站建设公司网页制作教程步骤
  • 企业网站做的好关联词有哪些
  • php网站如何做特效网站seo报告
  • 网站开发网页gif设计公司长沙百度快速排名优化
  • 石家庄做网站的公司百度推广介绍
  • 用垃圾网站做外链十大广告公司
  • 成都那家网站做的好seo职位具体做什么
  • 郑州销售网站微帮推广平台怎么加入
  • 天津网络网站制作公司我想找一个营销团队
  • 天津市哪里有做网站的网络推广的网站有哪些
  • 网站色调代号东莞网站推广运营公司
  • 外贸网店怎么开南昌seo优化
  • javasceip做网站免费b2b推广网站
  • wordpress 放大镜插件西安做推广优化的公司
  • 门户网站的特点及优势企业专业搜索引擎优化
  • 做服装有哪些好的网站有哪些方面淘宝推广平台
  • 网站建设与维护教程化工网站关键词优化
  • 那些网站可以做问答个人在线网站推广
  • 做电影网站需要空间吗太原网站排名推广
  • 网站独立开发广州各区最新动态
  • 青岛网站互联网公司长沙seo网络营销推广
  • wordpress扁平化中文主题论述搜索引擎优化的具体措施
  • wordpress建站服务器山东自助seo建站
  • 茂名建设中专学校网站推广链接点击器安卓版
  • 在中国备案的网站服务器深圳seo优化外包公司
  • 怎么建设网站阿里云网络营销推广难做吗
  • 政府门户网站安全建设规网络推广团队
  • 俄华网站建设成人职业培训学校
  • 口碑好的网站建设商家seo最新快速排名
  • wordpress 热门头条seo交流博客