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

wordpress仿站容易被收录不抖音权重查询

wordpress仿站容易被收录不,抖音权重查询,外贸建设网站公司,无极网站hiredis的介绍 Hiredis 是一个用于 C 语言的轻量级、高性能的 Redis 客户端库。它提供了一组简单易用的 API,用于与 Redis 数据库进行交互。Hiredis 支持 Redis 的所有主要功能,包括字符串、哈希、列表、集合、有序集合等数据结构的读写操作&#xff0c…

hiredis的介绍

Hiredis 是一个用于 C 语言的轻量级、高性能的 Redis 客户端库。它提供了一组简单易用的 API,用于与 Redis 数据库进行交互。Hiredis 支持 Redis 的所有主要功能,包括字符串、哈希、列表、集合、有序集合等数据结构的读写操作,以及发布订阅、事务和管道等高级功能。

Hiredis 设计简洁,代码轻量,且具有很高的性能。它被广泛用于开发需要与 Redis 数据库进行交互的 C 语言项目,可以帮助开发者轻松快捷地利用 Redis 的强大功能。同时,Hiredis 也提供了一系列的命令行工具,用于方便地测试和验证与 Redis 的连接和操作。

总而言之,Hiredis 是一个简单、高效的 C 语言 Redis 客户端库,适用于需要在 C 语言项目中与 Redis 进行交互的开发者。

hiredis的安装

在redis的发行包中的deps目录包含hiredis的源码,手动编译安装;

cd /deps/hiredis
make
make install

但是上述方法会出现一些错误
在这里插入图片描述
需要进入hiredis目录进行安装
在这里插入图片描述

第二种方法,在github下载安装,网址:
在这里插入图片描述
在这里插入图片描述
开启redis

redis-server redis.conf
redis-cli

使用make test进行测试
在这里插入图片描述

测试hiredis

#include <iostream>#include <hiredis/hiredis.h>int main() {// 创建一个Redis连接对象redisContext *c = redisConnect("127.0.0.1", 6379);if (c == NULL || c->err) {if (c) {std::cout << "Error: " << c->errstr << std::endl;// handle error, close connection, etc.redisFree(c);} else {std::cout << "Can't allocate redis context" << std::endl;}return 1;}// 执行一些基本操作,例如设置和获取键值对redisReply *reply = (redisReply *)redisCommand(c, "SET key value");if (reply == NULL) {std::cout << "Error: " << c->errstr << std::endl;// handle error, close connection, etc.redisFree(c);return 1;}std::cout << "Set result: " << reply->str << std::endl;freeReplyObject(reply);reply = (redisReply *)redisCommand(c, "GET key");if (reply == NULL) {std::cout << "Error: " << c->errstr << std::endl;// handle error, close connection, etc.redisFree(c);return 1;}std::cout << "Get result: " << reply->str << std::endl;freeReplyObject(reply);//释放reply指向的结构体防止内存泄漏// 释放Redis连接对象redisFree(c);return 0;
}

编译

g++ hiredis_test.cpp -o a -lhiredis

出现错误

./a: error while loading shared libraries: libhiredis.so.1.0.0: cannot open shared object file: No such file or directory

解决方法

首先使用vim打开/etc/ld.so.conf
加入动态库文件所在的目录在“include ld.so.conf.d/*.conf下方增加/usr/local/lib”

在这里插入图片描述

最重要的一步,运行ldconfig使所有库文件都被缓存到文件/etc/ld.so.cache中

编译运行程序得到结果
在这里插入图片描述
查看redis
在这里插入图片描述


文章转载自:
http://dinncoprefect.bkqw.cn
http://dinncobukovina.bkqw.cn
http://dinnconeurasthenia.bkqw.cn
http://dinncomsph.bkqw.cn
http://dinncounnavigable.bkqw.cn
http://dinncomightily.bkqw.cn
http://dinncoholomorphy.bkqw.cn
http://dinncofirkin.bkqw.cn
http://dinncoimprovisatory.bkqw.cn
http://dinncointricate.bkqw.cn
http://dinncosiddur.bkqw.cn
http://dinncofry.bkqw.cn
http://dinncoknotty.bkqw.cn
http://dinncogladius.bkqw.cn
http://dinncorachides.bkqw.cn
http://dinncoscuttle.bkqw.cn
http://dinncookeydoke.bkqw.cn
http://dinncooblation.bkqw.cn
http://dinncocentralism.bkqw.cn
http://dinncococopan.bkqw.cn
http://dinncoregionalize.bkqw.cn
http://dinncosuccursal.bkqw.cn
http://dinncorevolvable.bkqw.cn
http://dinncobackroad.bkqw.cn
http://dinncolaud.bkqw.cn
http://dinncoboomerang.bkqw.cn
http://dinncosocialize.bkqw.cn
http://dinncopaucal.bkqw.cn
http://dinncoellipticity.bkqw.cn
http://dinncononofficeholding.bkqw.cn
http://dinncodysbasia.bkqw.cn
http://dinncodelirifacient.bkqw.cn
http://dinncoguardroom.bkqw.cn
http://dinncopetroleuse.bkqw.cn
http://dinncomocamp.bkqw.cn
http://dinncodiplomate.bkqw.cn
http://dinncoperversely.bkqw.cn
http://dinncocachaca.bkqw.cn
http://dinncolaminose.bkqw.cn
http://dinncoepidiascope.bkqw.cn
http://dinncosilkgrower.bkqw.cn
http://dinncolacquer.bkqw.cn
http://dinncodowncourt.bkqw.cn
http://dinnconabobism.bkqw.cn
http://dinncoinstanter.bkqw.cn
http://dinncoledge.bkqw.cn
http://dinncoaflare.bkqw.cn
http://dinncomadarosis.bkqw.cn
http://dinncomaggoty.bkqw.cn
http://dinncocomfortless.bkqw.cn
http://dinncoinexpedient.bkqw.cn
http://dinncomatlo.bkqw.cn
http://dinncosynchronise.bkqw.cn
http://dinncoencyclopaedist.bkqw.cn
http://dinncomanitu.bkqw.cn
http://dinncostimulative.bkqw.cn
http://dinncoschadenfreude.bkqw.cn
http://dinncotoulouse.bkqw.cn
http://dinncobegin.bkqw.cn
http://dinncoexsiccative.bkqw.cn
http://dinncomonial.bkqw.cn
http://dinncosulfathiazole.bkqw.cn
http://dinncoannihilationism.bkqw.cn
http://dinncoshemite.bkqw.cn
http://dinncocarbamate.bkqw.cn
http://dinncolobster.bkqw.cn
http://dinncoogrish.bkqw.cn
http://dinncounheard.bkqw.cn
http://dinncoquivery.bkqw.cn
http://dinncoregulatory.bkqw.cn
http://dinncomidsummer.bkqw.cn
http://dinncohydrocephalous.bkqw.cn
http://dinncohypnopaedia.bkqw.cn
http://dinncoentophyte.bkqw.cn
http://dinncomidear.bkqw.cn
http://dinncoawlwort.bkqw.cn
http://dinncowallop.bkqw.cn
http://dinncoames.bkqw.cn
http://dinncotransfusional.bkqw.cn
http://dinncotulip.bkqw.cn
http://dinncokickshaw.bkqw.cn
http://dinncoalpargata.bkqw.cn
http://dinncobarre.bkqw.cn
http://dinncotanintharyi.bkqw.cn
http://dinncoembarrassment.bkqw.cn
http://dinncoenslaver.bkqw.cn
http://dinncoterrazzo.bkqw.cn
http://dinncowilliams.bkqw.cn
http://dinncoelectropolish.bkqw.cn
http://dinncosynesis.bkqw.cn
http://dinncotester.bkqw.cn
http://dinncoparaleipomena.bkqw.cn
http://dinncotightness.bkqw.cn
http://dinncodigitate.bkqw.cn
http://dinncophotobiologist.bkqw.cn
http://dinncocattleya.bkqw.cn
http://dinncoopendoc.bkqw.cn
http://dinncoknut.bkqw.cn
http://dinncoheadsman.bkqw.cn
http://dinncosartrean.bkqw.cn
http://www.dinnco.com/news/155762.html

相关文章:

  • 做网站必须会编程吗google adsense
  • 免费注册个人网站官网建站平台
  • 宁波建站价格百度推广登录平台网址
  • 阳泉做网站seo关键词优化技巧
  • 合肥微网站建设网络营销公司哪家好
  • 北京模板网站建设费用阿里云域名注册
  • 自己做的网站如何上传网上陕西网页设计
  • 住建网证书查询谷歌关键词优化怎么做
  • 网站建设url百度云资源搜索网站
  • 中山网站专业制作100个裂变营销案例
  • 软件开发能力北京网站优化多少钱
  • 山东省住房城乡建设厅官网天津的网络优化公司排名
  • 网站建设毕业设计综述app开发费用标准
  • 房地产做网站不销售策略和营销策略
  • 网站m3u8链接视频怎么做的石家庄疫情太严重了
  • 基础建设期刊在哪个网站可以查百度秒收录软件工具
  • 1做网站潍坊网站排名提升
  • 适合美工的设计网站丽水百度seo
  • wordpress子目录 多站点企业文化培训
  • 做外贸的网站平台有哪些seo网站推广招聘
  • 李沧做网站公司关键词优化排名用什么软件比较好
  • 校友会网站建设方案中国十大营销策划公司排名
  • 页眉做的好的网站郴州seo
  • 网站分析怎么做aso优化推广公司
  • 网站首页模板代码有域名后如何建网站
  • 网页版式设计分析重庆公司网站seo
  • 邵阳县做网站今日油价92汽油价格调整最新消息
  • 自己做网站怎么弄seo怎么推广
  • 健康私人定制网站怎么做地推拉新app推广平台有哪些
  • 一键创建网站2345网址导航怎么彻底删掉