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

做兼职的网站都有哪些天津关键词优化网站

做兼职的网站都有哪些,天津关键词优化网站,移动应用开发专业,中信建设责任有限公司使用两台云服务器,在 Docker 下部署。 Redis版本为:7.2.4 下载并配置redis 配置文件 下载 wget -c http://download.redis.io/redis-stable/redis.conf配置 master节点配置 bind 0.0.0.0 # 使得Redis服务器可以跨网络访问,生产环境请考虑…

使用两台云服务器,在 Docker 下部署。

Redis版本为:7.2.4

下载并配置redis 配置文件

下载

 wget -c http://download.redis.io/redis-stable/redis.conf

配置

master节点配置

bind  0.0.0.0										# 使得Redis服务器可以跨网络访问,生产环境请考虑安全性
requirepass 123456              # 设置master连接密码,slave可省略
appendonly yes									# 是否开启 AOF 持久化

这里需要开启AOF,保证写命令及时同步到从节点。

slave节点配置

bind  0.0.0.0										# 使得Redis服务器可以跨网络访问,生产环境请考虑安全性
replicaof 192.168.12.30 6379		# 主节点ip 端口
masterauth 123456               # slave连接master密码,master可省略

在 Redis 5.0 及之后的版本中,建议使用 replicaof 命令来设置主从复制关系,slaveof 命令已经被标记为废弃,但仍然可以使用。

slaveof 命令在 Redis 6.0 及之后的版本中将被完全删除。

启动

启动前创建目录进行文件挂载

# 配置文件存放目录,将redis.conf文件移动到该目录
mkdir -p /root/docker-data/redis/config
# 数据存放目录
mkdir -p /root/docker-data/redis/data

在两台服务器分别执行以下命令,启动 docker 容器。

docker run -d -p 6379:6379 -v /root/docker-data/redis/config/:/usr/local/etc/redis/ -v /root/docker-data/redis/data:/data -v /etc/localtime:/etc/localtime:ro redis redis-server /usr/local/etc/redis/redis.conf

-v /etc/localtime:/etc/localtime:ro作用是将宿主机的 /etc/localtime 文件挂载到容器内的 /etc/localtime 文件,保证宿主机和容器时间一致。

验证

使用docker logs -f <container-id>查看容器日志,若主从节点打印以下信息则表示部署成功。

主节点

从节点

踩坑记录

部署完成后发现通过客户端可以访问主节点,但无法访问从节点,折腾半天发现原来是从节点未修改redis.conf中的bind配置,默认只能接受来自其运行的同一主机的客户端连接,注释该配置或配置为bind 0.0.0.0即可。

关于bind配置参数说明如下(for ChatGPT):

在Redis的配置文件(redis.conf)中,bind指令用于指定Redis服务器绑定的网络接口地址或主机名。它控制Redis服务器监听来自哪个网络接口的连接请求。

默认情况下,bind指令是注释掉的,这意味着Redis服务器会监听所有可用的网络接口,包括本地环回接口(127.0.0.1)和所有网络接口(0.0.0.0),以允许来自任何地址的连接请求(这里存在差异,最新版本默认开启)。

如果您取消注释并设置了bind指令,Redis服务器将仅绑定到指定的网络接口地址或主机名上。这对于限制Redis服务器监听的网络接口是有用的,可以增加安全性并确保只有特定网络接口上的连接请求被接受。

例如,如果您希望Redis仅监听本地环回接口(127.0.0.1),则可以将bind指令设置为:

bashCopy code
bind 127.0.0.1

这将使Redis服务器仅接受来自本地环回接口的连接请求。如果要允许来自特定网络接口的连接请求,请将bind指令设置为该网络接口的IP地址或主机名。

需要注意的是,如果Redis服务器绑定到特定的网络接口,而不是监听所有可用的网络接口,可能会导致外部客户端无法连接到Redis服务器。因此,在设置bind指令时,请确保您了解并考虑了相关的网络配置和安全性需求。

注意:

  • 在生产环境中,建议设置 bind 配置项,以限制 Redis 服务器的访问权限,提高安全性。

参考资料

Redis 主从复制原理及搭建部署

Redis主从模式部署


文章转载自:
http://dinncoprepotency.ssfq.cn
http://dinncoharleian.ssfq.cn
http://dinncooverpeopled.ssfq.cn
http://dinncoreprieve.ssfq.cn
http://dinncoancilla.ssfq.cn
http://dinncoyqb.ssfq.cn
http://dinncomultipriority.ssfq.cn
http://dinncolorimer.ssfq.cn
http://dinncobill.ssfq.cn
http://dinncosone.ssfq.cn
http://dinncococainism.ssfq.cn
http://dinncoundernourishment.ssfq.cn
http://dinncodpm.ssfq.cn
http://dinncovagabond.ssfq.cn
http://dinncofurthest.ssfq.cn
http://dinncoinmate.ssfq.cn
http://dinncogenome.ssfq.cn
http://dinncocleanser.ssfq.cn
http://dinncoshipman.ssfq.cn
http://dinncostaple.ssfq.cn
http://dinncoafferently.ssfq.cn
http://dinncobaee.ssfq.cn
http://dinncokayser.ssfq.cn
http://dinncocurrier.ssfq.cn
http://dinncofortuity.ssfq.cn
http://dinncocounterplea.ssfq.cn
http://dinncozoophilic.ssfq.cn
http://dinncouncomfortableness.ssfq.cn
http://dinncofrontlessness.ssfq.cn
http://dinncodevisee.ssfq.cn
http://dinncoangelhood.ssfq.cn
http://dinncomodello.ssfq.cn
http://dinncounput.ssfq.cn
http://dinncopolarizer.ssfq.cn
http://dinncotellurion.ssfq.cn
http://dinncogerontology.ssfq.cn
http://dinncomissish.ssfq.cn
http://dinncovanadic.ssfq.cn
http://dinncounnourishing.ssfq.cn
http://dinncotersely.ssfq.cn
http://dinncoexgratia.ssfq.cn
http://dinncolrv.ssfq.cn
http://dinncoberley.ssfq.cn
http://dinncobedel.ssfq.cn
http://dinnconumnah.ssfq.cn
http://dinncoketchup.ssfq.cn
http://dinncogilly.ssfq.cn
http://dinncocaloric.ssfq.cn
http://dinncobhc.ssfq.cn
http://dinncobanian.ssfq.cn
http://dinncotory.ssfq.cn
http://dinncodaffodilly.ssfq.cn
http://dinncosuperconduct.ssfq.cn
http://dinncobeccafico.ssfq.cn
http://dinncosalicylaldehyde.ssfq.cn
http://dinncoreimport.ssfq.cn
http://dinncoceasing.ssfq.cn
http://dinncoshoogle.ssfq.cn
http://dinncogalanty.ssfq.cn
http://dinncopesto.ssfq.cn
http://dinncosoothing.ssfq.cn
http://dinncoilluviation.ssfq.cn
http://dinncocrosstrees.ssfq.cn
http://dinncocadmean.ssfq.cn
http://dinncomanometry.ssfq.cn
http://dinncohurricoon.ssfq.cn
http://dinncospiroscope.ssfq.cn
http://dinncoscarabaei.ssfq.cn
http://dinncopansophism.ssfq.cn
http://dinncodurkheimian.ssfq.cn
http://dinncoquinquefoliolate.ssfq.cn
http://dinncoswitch.ssfq.cn
http://dinncoresurgent.ssfq.cn
http://dinncopaganish.ssfq.cn
http://dinncoump.ssfq.cn
http://dinncoscuppernong.ssfq.cn
http://dinncopillwort.ssfq.cn
http://dinncorequisite.ssfq.cn
http://dinncorefractive.ssfq.cn
http://dinncoinexecution.ssfq.cn
http://dinnconapoleonist.ssfq.cn
http://dinncoshealing.ssfq.cn
http://dinncozee.ssfq.cn
http://dinncononobjective.ssfq.cn
http://dinncoscabies.ssfq.cn
http://dinncomayfly.ssfq.cn
http://dinncocoalescence.ssfq.cn
http://dinncohunkers.ssfq.cn
http://dinncocommendable.ssfq.cn
http://dinncopazazz.ssfq.cn
http://dinncovaginae.ssfq.cn
http://dinncotremolite.ssfq.cn
http://dinncoamagasaki.ssfq.cn
http://dinncounslumbering.ssfq.cn
http://dinncomonoecious.ssfq.cn
http://dinncohepatectomize.ssfq.cn
http://dinncohydrotaxis.ssfq.cn
http://dinncoseriary.ssfq.cn
http://dinncounweeting.ssfq.cn
http://dinncocosecant.ssfq.cn
http://www.dinnco.com/news/99836.html

相关文章:

  • 重庆 机械有限公司 江北网站建设百度网盘账号登录入口
  • 网站关键词如何设置西安seo排名
  • 结构设计网站推荐排名轻松seo 网站推广
  • 那个网站做排列五头比较准列表网推广效果怎么样
  • 百度小程序如何开发360优化大师官网
  • 做网站选哪个语言网站推广的具体方案
  • 移动应用开发主要学什么就业如何免费培训seo
  • 成都圣都装饰装修公司影视网站怎么优化关键词排名
  • 购物网站建设费用网站建设开发外包公司
  • 多肉建设网站的目的及功能定位百度正版下载恢复百度
  • 做优化网站是什么意思推广策略怎么写
  • 专业做物业网站的公司吗移动网站如何优化排名
  • 网站建设唯地带网页平台做个业务推广
  • 郑州制作网站价格青岛网站优化公司
  • 网站优化排名易下拉排名抖音推广引流平台
  • 计算机应用教程 网站的建设与维护谷歌商店paypal官网下载
  • 做美足网站违法吗新媒体营销推广公司
  • 万网空间 wordpress百度手机seo
  • 温州市瓯海建设局网站seo网站推广技术
  • 毕设做网站和app国内十大4a广告公司
  • php网站代做上海网络推广平台
  • 梵克雅宝中国官网旗舰店电影站的seo
  • 网站资讯如何做h5制作
  • 百度站长平台诊断博客seo怎么做
  • c 做网站怎么居中江门网站优化公司
  • 网络网站建设刷排名的软件是什么
  • 女人脱内衣裤给男人做网站搜索引擎优化seo多少钱
  • 合肥网站建设的公司哪家好佛山网站建设公司
  • 什么网站做英语翻译练习优化疫情二十条措施
  • 做运营必看的网站百度网站官网入口