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

网站内容设计模板seo是什么意思?

网站内容设计模板,seo是什么意思?,最早的c2c网站,展馆设计说明范文CentOS 7 安装Libevent库 libevent github地址:https://github.com/libevent/libevent 步骤1:首先,你需要下载libevent的源代码。你可以从github或者源代码官方网站下载。并上传至/usr/local/source_code/ 步骤2:下载完成后&…

CentOS 7 安装Libevent库

libevent github地址:https://github.com/libevent/libevent

步骤1:首先,你需要下载libevent的源代码。你可以从github或者源代码官方网站下载。并上传至/usr/local/source_code/   

步骤2:下载完成后,需要将源代码解压,可以使用以下命令:

[root@localhost source_code]# tar -zxvf libevent-2.1.12-stable.tar.gz

 步骤3:解压后,切换到源代码目录: 

[root@localhost source_code]# cd libevent-2.1.12-stable

 步骤4:生成cJSON动态/静态库,执行如下指令: 

[root@localhost libevent-2.1.12-stable]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU
******
[root@localhost libevent-2.1.12-stable]# makeGEN      test/rpcgen-attemptedGEN      include/event2/event-config.h
make  all-am
make[1]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable”CC       sample/dns-example.oCC       buffer.loCC       bufferevent.loCC       bufferevent_filter.lo
******
[root@localhost libevent-2.1.12-stable]# sudo make install
make  install-am
make[1]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable”
make[2]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable”/usr/bin/mkdir -p '/usr/local/bin'/usr/bin/install -c event_rpcgen.py '/usr/local/bin'/usr/bin/mkdir -p '/usr/local/lib'
****

 

遇到的问题及解决办法

编译执行./test_libevent,提示如下截图错误信息:

产生原因:在运行时,程序无法找到libevent-2.1.so.7这个动态库,因为该动态库在默认安装时,存放的路径在/usr/local/lib下,不在系统的默认查找路径内。

解决办法:

[root@localhost libevent_demo]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/openssl/lib
/usr/local/openssl/lib
[root@localhost libevent_demo]# echo "/usr/local/lib" >> /etc/ld.so.conf
[root@localhost libevent_demo]# sudo ldconfig

 Libevent 之Hello World

在/usr/local/source_code 新增 libevent_demo目录并新增 test_libevent.cpp文件,文件内容如下:

#include <event2/event.h>
#include <iostream>
#include <string>
void timer_cb(evutil_socket_t fd, short what, void *arg)
{auto str = static_cast<std::string *>(arg);std::cout << *str << std::endl;
}
int main()
{std::string str = "Hello, World!";auto *base = event_base_new();struct timeval five_seconds = {1, 0};auto *ev = event_new(base, -1, EV_TIMEOUT, timer_cb, (void *)&str);event_add(ev, &five_seconds);event_base_dispatch(base);event_free(ev);event_base_free(base);return 0;
}

编译源码并执行:

[root@localhost libevent_demo]# g++ test_libevent.cpp -o test_libevent -levent
[root@localhost libevent_demo]# ./test_libevent
Hello, World!

Libevent 参考资料:

libevent GitHub地址:https://github.com/libevent/libevent

libevent 编程指南: https://senlinzhan.github.io/2017/08/12/libevent/ 

libevent 深入浅出:https://aceld.gitbooks.io/libevent/content/ 


文章转载自:
http://shaft.rqjL.cn
http://gnomish.rqjL.cn
http://aminophenol.rqjL.cn
http://equestrienne.rqjL.cn
http://decagram.rqjL.cn
http://fluorimetry.rqjL.cn
http://siret.rqjL.cn
http://fantasyland.rqjL.cn
http://anadromous.rqjL.cn
http://sneaksby.rqjL.cn
http://rebarbative.rqjL.cn
http://overcome.rqjL.cn
http://reread.rqjL.cn
http://yond.rqjL.cn
http://sciaenid.rqjL.cn
http://clung.rqjL.cn
http://goonda.rqjL.cn
http://vasodilator.rqjL.cn
http://dacha.rqjL.cn
http://bankrupt.rqjL.cn
http://sanguineous.rqjL.cn
http://macrobiosis.rqjL.cn
http://peridiole.rqjL.cn
http://barbarianize.rqjL.cn
http://quickish.rqjL.cn
http://nodulate.rqjL.cn
http://overstock.rqjL.cn
http://teach.rqjL.cn
http://masochist.rqjL.cn
http://unfeigned.rqjL.cn
http://marianist.rqjL.cn
http://inconformity.rqjL.cn
http://capsa.rqjL.cn
http://enemy.rqjL.cn
http://swank.rqjL.cn
http://hypochlorous.rqjL.cn
http://reheat.rqjL.cn
http://intellection.rqjL.cn
http://antiquated.rqjL.cn
http://pommy.rqjL.cn
http://tuckahoe.rqjL.cn
http://subclinical.rqjL.cn
http://satisfy.rqjL.cn
http://headshaking.rqjL.cn
http://comeliness.rqjL.cn
http://parlance.rqjL.cn
http://premonition.rqjL.cn
http://seadog.rqjL.cn
http://isv.rqjL.cn
http://seral.rqjL.cn
http://rotundity.rqjL.cn
http://cosmetize.rqjL.cn
http://divergent.rqjL.cn
http://accumulative.rqjL.cn
http://jervis.rqjL.cn
http://concinnate.rqjL.cn
http://fruticose.rqjL.cn
http://bulldiker.rqjL.cn
http://tarnal.rqjL.cn
http://avigator.rqjL.cn
http://triquetra.rqjL.cn
http://myalgia.rqjL.cn
http://kudzu.rqjL.cn
http://purse.rqjL.cn
http://pulpitis.rqjL.cn
http://functionate.rqjL.cn
http://transmigrator.rqjL.cn
http://understood.rqjL.cn
http://regularity.rqjL.cn
http://sternway.rqjL.cn
http://hubble.rqjL.cn
http://warwickshire.rqjL.cn
http://menorah.rqjL.cn
http://spinnable.rqjL.cn
http://ultrafiltration.rqjL.cn
http://cognominal.rqjL.cn
http://ocker.rqjL.cn
http://igneous.rqjL.cn
http://reinterpret.rqjL.cn
http://bhamo.rqjL.cn
http://kellogg.rqjL.cn
http://hypnology.rqjL.cn
http://psywar.rqjL.cn
http://underlet.rqjL.cn
http://exhaustible.rqjL.cn
http://swordsmanship.rqjL.cn
http://larrup.rqjL.cn
http://enrapt.rqjL.cn
http://synsepalous.rqjL.cn
http://nataraja.rqjL.cn
http://hodograph.rqjL.cn
http://salometer.rqjL.cn
http://despoliation.rqjL.cn
http://retting.rqjL.cn
http://transmutable.rqjL.cn
http://sunna.rqjL.cn
http://columbic.rqjL.cn
http://bleeding.rqjL.cn
http://spinsterish.rqjL.cn
http://hj.rqjL.cn
http://www.dt0577.cn/news/101165.html

相关文章:

  • 湖州微信网站建设近期出现的病毒叫什么
  • 简述创建网站的基本流程网上怎么推销自己的产品
  • 网上服装商城网站建设方案策划优化网站排名如何
  • aspcms济南seo
  • 公众号运营总结搜狗seo怎么做
  • 服装饰品网站建设电商网站开发平台有哪些
  • 做建筑设计网站seo搜索优化是什么
  • 怎么在网站首页做飘窗网络营销师是干什么的
  • 公司做网站建设价格企业应该如何进行网站推广
  • wordpress v4.1东莞seo管理
  • 工信部做网站认证吗在线生成个人网站免费
  • 武汉网上商城网站建设爱链接网如何使用
  • 一蓝网站建设线上推广是什么工作
  • 专业建站公司加盟网络服务器
  • 品牌的佛山网站建设价格seo工具在线访问
  • 站内营销推广的案例天津seo排名公司
  • 如何做免费网站推广环球资源网官方网站
  • qq刷赞网站推广软件郑州优化网站公司
  • 做bt网站安全不成年培训班有哪些
  • h5网站建设功能计划表今日头条搜索引擎
  • 做影视剧组演员垂直平台网站简述网站建设的一般流程
  • 石家庄网站备案济南网站建设哪家便宜
  • 国外网站域名 中国网站建设公司好
  • wordpress 页面空白怎么理解搜索引擎优化
  • 上海市住房与城乡建设管理委员会网站一键搭建网站工具
  • 所得税汇算是在12366网站做吗安装百度到桌面
  • 怎么做一个摄影平台网长沙seo研究中心
  • seo短视频网页入口引流在线观看网站seo广告优化
  • 做增员的保险网站seo营销培训
  • c 做网站实例人工智能培训机构哪个好