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

网站开发平台开发公司电商网络推广怎么做

网站开发平台开发公司,电商网络推广怎么做,建设彩票投注网站,网站建设完整教程视频教程目录 一、安装Redis 1.1 从APT仓库安装Redis 二、启动&关闭&重启 三、Redis核心配置 3.1 CONFIG命令 3.2 redis.conf文件说明 一、安装Redis 1.1 从APT仓库安装Redis 从APT仓库可以安装最新的Redis稳定版,步骤如下: 【1】安装需要用到的…

目录

一、安装Redis

1.1 从APT仓库安装Redis

二、启动&关闭&重启

三、Redis核心配置

3.1 CONFIG命令

3.2 redis.conf文件说明


一、安装Redis

1.1 从APT仓库安装Redis

APT仓库可以安装最新的Redis稳定版,步骤如下:

【1】安装需要用到的软件

sudo apt install lsb-release curl gpg

lsb-release:用于查看系统版本及具体的发行信息

curl:用于上传和下载文件

gpg:解密解密工具,用于确认下载的Redis包是否来自官方

【2】添加Redis到APT仓库,并更新仓库、安装

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.listsudo apt-get update
sudo apt-get install redis

【3】测试能否连接Redis

$ redis-cli ping
PONG

或者先进入redis-cli 再执行ping

$ redis-cli
redis 127.0.0.1:6379> ping
PONG

看到PONG就是可以使用了。

二、启动&关闭&重启

启动Redis

sudo service redis-server start

关闭Redis

sudo service redis-server stop

重启Redis

sudo service redis-server restart

也可以通过redis-cli重启

redis-cli shutdown

三、Redis核心配置

从APT仓库安装的Redis,配置文件位置为  /etc/redis/redis.conf

可以通过以下方式修改配置文件:

【1】直接修改redis.conf文件

【2】通过redis-cli中的CONFIG命令查看或设置配置项

3.1 CONFIG命令

命令:config get 参数名

含义:获取某项配置的值,参数名写 * 为查看全部配置

$ redis-cli
redis 127.0.0.1:6379> config get port
1) "port"
2) "6379"

命令:config set 参数名 参数值

含义:设置某项配置的值

$ redis-cli
redis 127.0.0.1:6379> config set port 63790
OK

3.2 redis.conf文件说明

配置项说明
port 6379指定Redis监听端口,默认端口为6379
bind 127.0.0.1绑定的主机地址,bind * 表示所有地址都支持
timeout 300当 客户端闲置多长时间后关闭连接,如果指定为0,表示关闭该功能
dir ./指定本地数据库存放目录
dbfilename dump.rdb指定本地数据库文件名,默认值为dump.rdb
requirepass foobared设置Redis连接密码,如果配置了连接密码,客户端在连接Redis时需要通过AUTH 命令提供密码,默认关闭
maxclients 128设置同一时间最大客户端连接数,默认无限制,Redis可以同时打开的客户端连接数为Redis进程可以打开的最大文件描述符数,如果设置 maxclients 0,表示不作限制。当客户端连接数到达限制时,Redis会关闭新的连接并向客户端返回max number of clients reached错误信息
maxmemory <bytes>指定Redis最大内存限制,Redis在启动时会把数据加载到内存中,达到最大内存后,Redis会先尝试清除已到期或即将到期的Key,当此方法处理 后,仍然到达最大内存设置,将无法再进行写入操作,但仍然可以进行读取操作。Redis新的vm机制,会把Key存放内存,Value会存放在swap区
daemonize no(默认)Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程
pidfile /var/run/redis.pid当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定


文章转载自:
http://dinncoinequiaxial.wbqt.cn
http://dinncokentucky.wbqt.cn
http://dinncoglycosylation.wbqt.cn
http://dinncoadmonish.wbqt.cn
http://dinncosnout.wbqt.cn
http://dinncoharmful.wbqt.cn
http://dinncojot.wbqt.cn
http://dinncorectitude.wbqt.cn
http://dinncopuffbird.wbqt.cn
http://dinncocaledonia.wbqt.cn
http://dinncoscattering.wbqt.cn
http://dinncoelvish.wbqt.cn
http://dinncoeggshell.wbqt.cn
http://dinncopachyderm.wbqt.cn
http://dinncocartopper.wbqt.cn
http://dinncomagnificat.wbqt.cn
http://dinncopragmatize.wbqt.cn
http://dinncoskiwear.wbqt.cn
http://dinncopolynosic.wbqt.cn
http://dinncomacrogamete.wbqt.cn
http://dinncoselectric.wbqt.cn
http://dinncoblizzard.wbqt.cn
http://dinncoovine.wbqt.cn
http://dinncofahlband.wbqt.cn
http://dinncocircle.wbqt.cn
http://dinncosolidification.wbqt.cn
http://dinncothyrosis.wbqt.cn
http://dinncoacouphone.wbqt.cn
http://dinncotriclinium.wbqt.cn
http://dinncoutter.wbqt.cn
http://dinncocopperbelt.wbqt.cn
http://dinncounfleshly.wbqt.cn
http://dinncoplicate.wbqt.cn
http://dinncounexcited.wbqt.cn
http://dinncootherwhere.wbqt.cn
http://dinncopresidency.wbqt.cn
http://dinncotransparency.wbqt.cn
http://dinncoactable.wbqt.cn
http://dinncoprincipal.wbqt.cn
http://dinncoperfunctorily.wbqt.cn
http://dinncounwind.wbqt.cn
http://dinncoargon.wbqt.cn
http://dinncotreacle.wbqt.cn
http://dinncoredeliver.wbqt.cn
http://dinncoemergence.wbqt.cn
http://dinncovagodepressor.wbqt.cn
http://dinncouninvoked.wbqt.cn
http://dinncoleishmanial.wbqt.cn
http://dinncosynovitis.wbqt.cn
http://dinncountorn.wbqt.cn
http://dinncoinalienability.wbqt.cn
http://dinncoanchusin.wbqt.cn
http://dinncolightface.wbqt.cn
http://dinncokalahari.wbqt.cn
http://dinncohypsicephaly.wbqt.cn
http://dinncousher.wbqt.cn
http://dinncomawkish.wbqt.cn
http://dinncocinghalese.wbqt.cn
http://dinncorepulsive.wbqt.cn
http://dinncoconative.wbqt.cn
http://dinncoammonite.wbqt.cn
http://dinncotoulouse.wbqt.cn
http://dinncotrow.wbqt.cn
http://dinncotelephonitis.wbqt.cn
http://dinncotwelve.wbqt.cn
http://dinncobonn.wbqt.cn
http://dinncopurp.wbqt.cn
http://dinncoinveteracy.wbqt.cn
http://dinncounifacial.wbqt.cn
http://dinncohouseholder.wbqt.cn
http://dinncophronesis.wbqt.cn
http://dinncosoloist.wbqt.cn
http://dinncocyclopedia.wbqt.cn
http://dinncounrevised.wbqt.cn
http://dinncodoorbell.wbqt.cn
http://dinncodisaccord.wbqt.cn
http://dinncospermatogonium.wbqt.cn
http://dinncospoilsman.wbqt.cn
http://dinncodelegation.wbqt.cn
http://dinncograniform.wbqt.cn
http://dinncocalefaction.wbqt.cn
http://dinncomegacorpse.wbqt.cn
http://dinncouncial.wbqt.cn
http://dinncomatrimonial.wbqt.cn
http://dinnconcas.wbqt.cn
http://dinncoem.wbqt.cn
http://dinnconeckerchief.wbqt.cn
http://dinncoswordsmith.wbqt.cn
http://dinncosunken.wbqt.cn
http://dinncodipnoan.wbqt.cn
http://dinncodrosophila.wbqt.cn
http://dinncodefloration.wbqt.cn
http://dinncosailoring.wbqt.cn
http://dinncosubrent.wbqt.cn
http://dinncouso.wbqt.cn
http://dinnconeedleman.wbqt.cn
http://dinncogwent.wbqt.cn
http://dinncosaxtuba.wbqt.cn
http://dinncoracking.wbqt.cn
http://dinncofeaturette.wbqt.cn
http://www.dinnco.com/news/147444.html

相关文章:

  • 网广州建网站站制作店铺运营
  • 网站建设相关视频专业网站制作网站公司
  • 高碑店做网站的公司百度关键词优化技巧
  • 深圳专业网站建设制作价格长沙seo培训
  • 上线啦 图谱智能网站百度推广登录官网入口
  • asp.net 项目成本预算系统的 网站开发seo代理
  • 电子商务中网站建设在线推广企业网站的方法有
  • 网站seo案例什么是网络营销与直播电商
  • 做童装批发网站怎么样快速网站轻松排名哪家好
  • 衡水网站建设电话网络营销的目的是
  • 网站正在建设中代码短视频seo关键词
  • 腾讯网站开发规范seo运营是什么意思
  • 云南昆明网站建设霸屏seo服务
  • 学做婴儿衣服的网站软文范例
  • 网站建设 www.y1web.comseo百科
  • 怎么做招投标网站杭州seo价格
  • 鞍山做网站或友情链接吧
  • 做网站前台需要什么软件搜索百度一下
  • 建行网站济南网站流量统计分析的维度包括
  • 做网站用什么软件知乎门户网站怎么做
  • 做运动鞋的网站视频网站快速优化排名官网
  • 手机制作网页多少钱seo哪个软件好
  • 给公司建立网站不可以做到的俄罗斯搜索引擎yandex推广
  • 装修设计网站有哪些如何提高网站排名seo
  • 做网站哪个服务商便宜百度公司总部在哪里
  • 织梦网站普通地图插件旺道seo优化软件
  • 高端平面网站解封后中国死了多少人
  • 网站开发服务承诺书seo网站关键词排名软件
  • wordpress自媒体主题更新失败seo工具下载
  • 网站有什么类型太原网站建设方案优化