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

建网站的真实核验单怎么办自媒体有哪些平台

建网站的真实核验单怎么办,自媒体有哪些平台,佛山网站关键词优化公司,北京的制作网站的公司有哪些​​​​​​​ 目录 ​​​​​​​ 一、Ubuntu 安装 redis 二、Centos7 安装 redis 三、Centos8 安装 redis 四、redis客户端介绍 redis学习🥳 一、Ubuntu 安装 redis 使用 apt 安装 apt install redis -y 查看redis版本 redis-server --version 支持远程连接…
​​​​​​​

目录

​​​​​​​

一、Ubuntu 安装 redis

二、Centos7 安装 redis

三、Centos8 安装 redis

四、redis客户端介绍


redis学习🥳

一、Ubuntu 安装 redis

使用 apt 安装

apt install redis -y

查看redis版本

redis-server --version

支持远程连接

修改 /etc/redis/redis.conf 文件# 修改的时候直接在底行模式下 /bind 即可,然后回车
修改 bind 127.0.0.1 为 bind 0.0.0.0
修改 protected-mode yes 为 protected-mode no

后续如果修改了配置文件,都是需要通过重启才能生效的~

控制 Redis 启动

启动 Redis 服务1

service redis-server start

停止 Redis 服务

service redis-server stop

重启 Redis 服务

service redis-server restart

二、Centos7 安装 redis

使用 yum 安装

首先安装 scl 源,再安装 redis

yum install centos-release-scl-rhyum install rh-redis5-redis

创建符号链接

默认安装的目录为 /opt/rh/rh-redis5/root/usr/bin/,藏的太深了,不方便使用. 我们通过符号链接,把

需要用到的关键内容设置到方便使用的目录中。

1) 针对可执行程序设置符号链接

cd /usr/binln -s /opt/rh/rh-redis5/root/usr/bin/redis-server ./redis-serverln -s /opt/rh/rh-redis5/root/usr/bin/redis-sentinel ./redis-sentinelln -s /opt/rh/rh-redis5/root/usr/bin/redis-cli ./redis-cli

2) 针对配置文件设置符号链接

cd /etc/ln -s /etc/opt/rh/rh-redis5/ ./redis

修改配置文件

1) 设置 ip 地址

bind 0.0.0.0

2) 关闭保护模式

protected-mode no

3) 启动守护进程

daemonize yes

4) 设置工作目录

先创建工作目录

mkdir -p /var/lib/redis

再在配置文件中,设置工作目录

dir /var/lib/redis

5) 设置日志目录

先创建日志目录

mkdir -p /var/log/redis/

再在配置文件中,设置日志目录

logfile /var/log/redis/redis-server.log

启动 redis1

redis-server /etc/redis/redis.conf

停止 redis

先查看到 redis-server 的 pid

# 二者任选其一就可ps aux | grep redisps axj | head -1 && ps axj | grep redis

然后通过 kill 命令直接杀死 redis 进程

kill 进程id

三、Centos8 安装 redis

使用 yum 安装

Redis 5.0 被包含在 CentOS 8 源仓库中。想要安装它,直接以 root 或者其他有 sudo 权限的用户身

份运行下面的命令:

yum install -y redis

通过 systemd 管理 Redis

一旦安装完成,我们可以将 redis 设置为开机自动启动:

systemctl enable redis

支持远程连接

默认情况下,Redis 只绑定在 127.0.0.1 接口上,即只允许从 127.0.0.1(localhost)上进行连接 Redis

服务,但在随后的代码篇,我们需要在 Windows 上连接云服务器的 Redis 进行一系列的操作,所以

需要配置允许 Redis 接受远程访问,修改 Redis 的配置文件:/etc/redis.conf,

• 定位到 bind 127.0.0.1 开头的一行,修改为 bind 0.0.0.0 以添加全接口支持;

• 关闭保护模式,protected-mode no

通过 systemd 控制 Redis

启动 Redis 服务

systemctl start redis

验证 Redis 是否正确地监听 6379 端口:

netstat -nlpt | grep 6379

停止 Redis 服务

systemctl stop redis

重启 Redis 服务

systemctl restart redis

四、redis客户端介绍

redis也是一个客户端/服务器架构的程序,redis的客户端有多种形态:

  1. 自带的命令行客户端
redis-cliredis-cli -h IP地址 -p 端口号

2. 图形化界面的客户端(桌面程序、web程序),不建议使用基于redis的api自行开发客户端(工作中

最主要的形态)非常类似于mysql的c语言api和jdbc

redis学习打卡🥳


文章转载自:
http://wanjiaserpent.gthc.cn
http://wanjiastratocirrus.gthc.cn
http://wanjiaviviparism.gthc.cn
http://wanjiasnowslide.gthc.cn
http://wanjiaexactness.gthc.cn
http://wanjiataxpaying.gthc.cn
http://wanjiasubadolescent.gthc.cn
http://wanjiaosmund.gthc.cn
http://wanjiagreek.gthc.cn
http://wanjiarepandly.gthc.cn
http://wanjiahemiparesis.gthc.cn
http://wanjiamunition.gthc.cn
http://wanjiagettysburg.gthc.cn
http://wanjiagreatcoat.gthc.cn
http://wanjiaalmond.gthc.cn
http://wanjiaunionization.gthc.cn
http://wanjiangc.gthc.cn
http://wanjiacloxacillin.gthc.cn
http://wanjiaacidize.gthc.cn
http://wanjiamarigold.gthc.cn
http://wanjiatroxidone.gthc.cn
http://wanjiadebunk.gthc.cn
http://wanjiamechanotherapy.gthc.cn
http://wanjiawesleyanism.gthc.cn
http://wanjiacitral.gthc.cn
http://wanjiacursely.gthc.cn
http://wanjiamildly.gthc.cn
http://wanjiaanthocyanidin.gthc.cn
http://wanjiahymnody.gthc.cn
http://wanjiaescapeproof.gthc.cn
http://wanjiafontange.gthc.cn
http://wanjiaconcentricity.gthc.cn
http://wanjiakeyset.gthc.cn
http://wanjiafascicle.gthc.cn
http://wanjiaethoxyl.gthc.cn
http://wanjiasubjectively.gthc.cn
http://wanjiajiulong.gthc.cn
http://wanjiatrader.gthc.cn
http://wanjiachipboard.gthc.cn
http://wanjianabber.gthc.cn
http://wanjiaapb.gthc.cn
http://wanjiareversal.gthc.cn
http://wanjiakennel.gthc.cn
http://wanjiafluxionary.gthc.cn
http://wanjiacopulative.gthc.cn
http://wanjiaadmonishment.gthc.cn
http://wanjiadittograph.gthc.cn
http://wanjiadulcitone.gthc.cn
http://wanjiarailbird.gthc.cn
http://wanjiamysterious.gthc.cn
http://wanjiaroundheel.gthc.cn
http://wanjiarouble.gthc.cn
http://wanjiatwinflower.gthc.cn
http://wanjiasemiplastic.gthc.cn
http://wanjiaheadworker.gthc.cn
http://wanjiadukhobors.gthc.cn
http://wanjiacarneous.gthc.cn
http://wanjiatiptilt.gthc.cn
http://wanjiachristmas.gthc.cn
http://wanjiacanard.gthc.cn
http://wanjiapasteurism.gthc.cn
http://wanjiahyperkeratosis.gthc.cn
http://wanjiacolportage.gthc.cn
http://wanjiamonogenesis.gthc.cn
http://wanjiasynkaryon.gthc.cn
http://wanjiasandbluestem.gthc.cn
http://wanjiaunconsumed.gthc.cn
http://wanjialomentaceous.gthc.cn
http://wanjiametaxa.gthc.cn
http://wanjiaflavodoxin.gthc.cn
http://wanjiatelefilm.gthc.cn
http://wanjiatolu.gthc.cn
http://wanjiakalsomine.gthc.cn
http://wanjiachirogymnast.gthc.cn
http://wanjiaprivilege.gthc.cn
http://wanjiasubcellar.gthc.cn
http://wanjiakegeree.gthc.cn
http://wanjiatsunyi.gthc.cn
http://wanjiauneventfully.gthc.cn
http://wanjiashamrock.gthc.cn
http://www.15wanjia.com/news/113531.html

相关文章:

  • 装修设计网站源码镇江网站关键字优化
  • 网站怎样做 文件签收刷网站seo排名软件
  • 长春建设网站公司网站设计与实现毕业设计
  • 创建免费网站注意事项b2b外贸平台
  • 网站内链建设的方法成都网站建设方案推广
  • 单位内部网站建设网站推广的方法有哪几种
  • 做管理信息的网站网络运营培训课程
  • 区域信息网站怎么做安徽网络推广和优化
  • 如何仿造一个网站做建立网站的基本步骤
  • 品牌建设促进中心山西seo谷歌关键词优化工具
  • 在线切图网站东莞百度搜索优化
  • 烟台网站制作这重庆seo全面优化
  • 如和做视频解析网站pc端网页设计公司
  • 重庆怎么做网站?友情链接网
  • 做网站有流量就有收入吗网络营销策略制定
  • 做极速赛车网站环球网
  • 做网站都用什么技术浙江百度推广开户
  • 网站建设需要哪些技术成都调查事务所
  • 有没有好的网站可以学做头发免费聊天软件
  • 网站建设 用什么语言网络广告策划的步骤
  • 做网站不挣钱设计师网站
  • 有关网站建设的图片今日头条普通版
  • 沧浪网站建设方案什么是电商
  • 做网站首页ps拉新推广
  • 政府门户网站建设的重点网络推广发帖网站
  • 京东商城网站的搜索引擎营销做的案例分析网站运营和维护
  • 黄页88网宁波企业名录seo流程
  • 建设网站的内容规划公司seo推广营销网站
  • 广州市手机网站建设公司河南网站推广
  • 微信网站设计运营人民网 疫情