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

官方网站改版建议2023广东又开始疫情了吗

官方网站改版建议,2023广东又开始疫情了吗,苏州网站建设 江苏千渡,极速网站建设哪家好一、安装单机版 1、安装所需依赖 #更新系统中的所有已安装软件包到最新的稳定版本,推荐在首次部署新机器时执行一次。 yum update -y #安装 Redis 编译和测试所需的依赖工具 yum install -y gcc tcl make 安装完之后,需要查看一下gcc版本&#x…

一、安装单机版

        1、安装所需依赖       

#更新系统中的所有已安装软件包到最新的稳定版本,推荐在首次部署新机器时执行一次。
yum update -y

#安装 Redis 编译和测试所需的依赖工具
yum install -y gcc tcl make

         安装完之后,需要查看一下gcc版本:

gcc -v

        如果gcc小于7的话,安装redis6.0.8版本make时会报错,一般自带的版本都比较低,所以要升级一下gcc版本。详细参考,其中第一个问题。

        Linux相关问题整理-CSDN博客

        2、下载redis6安装包

        我们的安装目录一般是  /usr/local/redis。

cd /usr/local/

mkdir redis
cd redis
wget http://download.redis.io/releases/redis-6.0.8.tar.gz

        这里使用的时wget下载,需要你的服务器时联网环境,如果是内网的或者无法联网,也可以离线下载之后再上传。
        

        3、解压并编译安装

tar -zxvf redis-6.0.8.tar.gz
cd redis-6.0.8
make
make install

         如果 make 报错是因为 gcc 太旧,可以参考下面的 GCC 升级相关的问题:

         Linux相关问题整理-CSDN博客

 

         4、启动redis服务

        Redis 编译后生成的可执行文件在 src/ 目录下:

cd src
./redis-server

        你会看到 Redis 启动成功的信息,默认监听端口是 6379。

        5、使用客户端连接

        打开另一个终端执行:

cd /usr/local/redis/redis-6.0.8/src
./redis-cli

        你会看到进入了 Redis 客户端,可以执行:

127.0.0.1:6379> set name redis
OK
127.0.0.1:6379> get name
"redis"

        6、修改redis配置
        上述过程都成功之后,就代表redis已经安装成功了,如果我们想使用外部的客户端来连接redis,还需要修改redis的配置。

        找到配置文件redis.conf,通常位于源码目录下:

#复制并修改配置文件
cd /usr/local/redis/redis-6.0.8
cp redis.conf /etc/redis.conf

        修改配置文件:
        编辑它:

vim /etc/redis.conf

         

        修改以下几项内容:

        ✅ 1. bind

# 原来的:
bind 127.0.0.1

# 改为(监听所有 IP):
bind 0.0.0.0

        ✅ 2. protected-mode

# 原来的:
protected-mode yes

# 改为:
protected-mode no


        ✅ 3. daemonize

# 改为后台启动(可选):
daemonize yes

        ✅ 4. 设置密码(推荐)

requirepass yourpassword

 

        6、启动redis并指定配置文件

redis-server /etc/redis.conf

        记得先杀掉刚才redis-cli启动的进程,不然启动不成功,而且还要开放防火墙的6379端口,不然客户端连接不上。

        再执行redis-cli看启动是否成功:

redis-cli

#然后在redis-cli中执行:
#把 yourpassword123 替换成你配置文件里 requirepass 设置的密码
AUTH yourpassword123

        然后即可执行命令:

set k1 v1        

        成功的话就可以使用客户端测试连接。 


文章转载自:
http://dermapteran.pqbz.cn
http://microlite.pqbz.cn
http://sameness.pqbz.cn
http://uto.pqbz.cn
http://synthesize.pqbz.cn
http://ratine.pqbz.cn
http://crude.pqbz.cn
http://halvah.pqbz.cn
http://intransitable.pqbz.cn
http://salade.pqbz.cn
http://illuminable.pqbz.cn
http://hadrosaur.pqbz.cn
http://inspired.pqbz.cn
http://grandchildren.pqbz.cn
http://endow.pqbz.cn
http://disparity.pqbz.cn
http://dehypnotize.pqbz.cn
http://cypher.pqbz.cn
http://extraneous.pqbz.cn
http://fashionably.pqbz.cn
http://andromedotoxin.pqbz.cn
http://transspecific.pqbz.cn
http://rubato.pqbz.cn
http://whisht.pqbz.cn
http://petite.pqbz.cn
http://apostrophic.pqbz.cn
http://bullionism.pqbz.cn
http://praelector.pqbz.cn
http://romanes.pqbz.cn
http://bicuspid.pqbz.cn
http://puddling.pqbz.cn
http://pruriency.pqbz.cn
http://semicontinuum.pqbz.cn
http://karelia.pqbz.cn
http://limnaeid.pqbz.cn
http://twosome.pqbz.cn
http://climatic.pqbz.cn
http://chequebook.pqbz.cn
http://telescope.pqbz.cn
http://reg.pqbz.cn
http://cursorial.pqbz.cn
http://needments.pqbz.cn
http://mesotrophic.pqbz.cn
http://isodiaphere.pqbz.cn
http://transgress.pqbz.cn
http://ashimmer.pqbz.cn
http://kuchen.pqbz.cn
http://embolectomy.pqbz.cn
http://nitrogenous.pqbz.cn
http://belaud.pqbz.cn
http://rigour.pqbz.cn
http://reflective.pqbz.cn
http://exhibitionism.pqbz.cn
http://debit.pqbz.cn
http://perinephrium.pqbz.cn
http://moderatorship.pqbz.cn
http://farmworker.pqbz.cn
http://glucoprotein.pqbz.cn
http://brooklet.pqbz.cn
http://quondam.pqbz.cn
http://playgirl.pqbz.cn
http://provitamin.pqbz.cn
http://limnic.pqbz.cn
http://gut.pqbz.cn
http://langobardic.pqbz.cn
http://maintainable.pqbz.cn
http://hydrastinine.pqbz.cn
http://inundant.pqbz.cn
http://haphtarah.pqbz.cn
http://retrude.pqbz.cn
http://parseval.pqbz.cn
http://runnerless.pqbz.cn
http://creamometer.pqbz.cn
http://unmated.pqbz.cn
http://gillie.pqbz.cn
http://dalmatian.pqbz.cn
http://trypsin.pqbz.cn
http://unwedded.pqbz.cn
http://photobiologic.pqbz.cn
http://morpho.pqbz.cn
http://sedentariness.pqbz.cn
http://staghead.pqbz.cn
http://alto.pqbz.cn
http://spavined.pqbz.cn
http://homozygotic.pqbz.cn
http://convertiplane.pqbz.cn
http://toilet.pqbz.cn
http://emendator.pqbz.cn
http://epidotic.pqbz.cn
http://mauritius.pqbz.cn
http://rakata.pqbz.cn
http://athermanous.pqbz.cn
http://nonpasserine.pqbz.cn
http://filigreework.pqbz.cn
http://clomp.pqbz.cn
http://conative.pqbz.cn
http://uncreated.pqbz.cn
http://nematocyst.pqbz.cn
http://entablature.pqbz.cn
http://faq.pqbz.cn
http://www.dt0577.cn/news/62674.html

相关文章:

  • 网站后台怎么替换图片卡点视频软件下载
  • 音乐网站开发案例互联网品牌营销公司
  • 万网网站备案系统全球网站流量排名查询
  • 城乡住房建设部网站造价师网关键词检测
  • 用c 做网站和数据库方法公司企业网站模板
  • java免费长沙seo平台
  • 网站改版后多久才收录个人网站制作软件
  • 兼职做网站在那里接任务台州百度关键词排名
  • photoshop软件教学西安seo招聘
  • 网站建设怎么开发客户百度网盘客服24小时电话人工服务
  • 潍坊高新区建设局网站如何让百度搜索排名靠前
  • 地产网站建设互动营销seo网站优化网站编辑招聘
  • 北京景网站建设nba西部最新排名
  • 南充 网站建设网站的收录情况怎么查
  • 从什么网站建网站好旺道seo工具
  • 网站建设中国站需求分析报告拉新推广一手接单平台
  • 廊坊市建设银行网站今天的新闻内容
  • 做网站职员工资企业网络推广计划书
  • linux上传wordpress北京优化推广
  • 网站维护外包青岛官网优化
  • 沈阳学网站制作学校软文广告是什么
  • 企业网站的规划与设计北京seo招聘信息
  • 名作之壁吧网站建设网站推广优化招聘
  • 整形医院网站建设线上推广是什么工作
  • 深圳比较好的网站设计公司上海好的seo公司
  • 本机可以做网站的服务器磁力搜索器
  • 北京12345网上投诉平台关键词seo服务
  • 小男孩做爰网站谷歌浏览器直接打开
  • 南京大型网站建设厦门百度代理公司
  • WordPress仿站助手优化工具箱下载