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

中国本科高等质量建设研究网站网站建设理由

中国本科高等质量建设研究网站,网站建设理由,seo排名优化北京,中国装修公司排行榜ubuntu下载安装libevent libevent 官网上下载最新稳定版本#xff0c;然后拖到你的linux系统中#xff0c;解压。或者可是使用wget在线下载。本文下载的是最新版本#xff0c;其他版本同操作 tar xf libevent-2.1.12-stable.tar.gz 进入解压后的目录#xff0c;执行 ./con…ubuntu下载安装libevent libevent 官网上下载最新稳定版本然后拖到你的linux系统中解压。或者可是使用wget在线下载。本文下载的是最新版本其他版本同操作 tar xf libevent-2.1.12-stable.tar.gz 进入解压后的目录执行 ./configure 可能会出现报错内容如下 checking for library containing SSL_new... no checking for library containing SSL_new... no checking openssl/ssl.h usability... no checking openssl/ssl.h presence... no checking for openssl/ssl.h... no configure: error: openssl is a must but can not be found. You should add the directory containing openssl.pc to the PKG_CONFIG_PATH environment variable, or set CFLAGS and LDFLAGS directly for openssl, or use --disable-openssl to disable support for openssl encryption解决办法安装libssl-dev sudo apt install libssl-dev安装 make sudo make install查看安装成功否 ls /usr/local/lib/libevent*若出现下面的文件则安装成功。 ls /usr/local/lib/libevent* /usr/local/lib/libevent-2.1.so.7 /usr/local/lib/libevent_extra.la /usr/local/lib/libevent-2.1.so.7.0.1 /usr/local/lib/libevent_extra.so /usr/local/lib/libevent.a /usr/local/lib/libevent_openssl-2.1.so.7 /usr/local/lib/libevent.la /usr/local/lib/libevent_openssl-2.1.so.7.0.1 /usr/local/lib/libevent.so /usr/local/lib/libevent_openssl.a /usr/local/lib/libevent_core-2.1.so.7 /usr/local/lib/libevent_openssl.la /usr/local/lib/libevent_core-2.1.so.7.0.1 /usr/local/lib/libevent_openssl.so /usr/local/lib/libevent_core.a /usr/local/lib/libevent_pthreads-2.1.so.7 /usr/local/lib/libevent_core.la /usr/local/lib/libevent_pthreads-2.1.so.7.0.1 /usr/local/lib/libevent_core.so /usr/local/lib/libevent_pthreads.a /usr/local/lib/libevent_extra-2.1.so.7 /usr/local/lib/libevent_pthreads.la /usr/local/lib/libevent_extra-2.1.so.7.0.1 /usr/local/lib/libevent_pthreads.so /usr/local/lib/libevent_extra.a编译的时候加-levent选项 代码示例 // 信号事件 void signal_cb(int fd, short event, void *arg) {printf(SIGINT is comming! if you wang exit process, please enter other signal\n); }// 定时事件 void time_cb(int fd, short event, void *arg) {printf(time out\n);exit(0); }int main() {struct event_base *base event_init(); // base为Libevent的一个实例,对base进行初始化// 创建信号事件struct event *signal_event evsignal_new(base, SIGINT, signal_cb, NULL);event_add(signal_event, NULL); // 将事件注册到Libevent中// 创建定时事件timeval tm{5}; // 定时时间5sstruct event *time_event evtimer_new(base, time_cb, NULL);event_add(time_event, tm); // 将事件注册到Libevent中// 执行事件循环,检测就绪事件event_base_dispatch(base);// 事件循环结束,释放资源event_free(signal_event);event_free(time_event);event_base_free(base);return 0; }上述程序捕捉2号信号并设置捕捉超时时间5秒。
http://www.sadfv.cn/news/86177/

相关文章:

  • 注册网站流程及资料网页设计费用明细
  • 做淘客需要网站南京哪家网站建设比较好
  • 广州专业网站建设企业无代码网站开发
  • 网站建设比较好的机械制造设备类企业网站织梦模板
  • phpmysql网站开发案例网站后台账户如何做会计分录
  • 网页制作网站创建南昌专业网站建设公司
  • 做代加工的网站发布住建部证书查询大厅
  • 品牌网站建设工作室张家口外贸网站建设
  • 私人网站服务器免费企业网站怎么做省钱
  • 免费网站在线观看常用的编辑html的软件
  • 做网站PV网站负责人备案采集照具体要求
  • 如何添加网站代码江门外贸网站建设
  • 企业做网站的痛点有哪些深圳营销型网站定制
  • 手车做网课网站wordpress样式表
  • 官方微网站构站网
  • 寄生虫网站怎么做中国建设银行深圳分行网站
  • 机关建设网站i57500网站开发
  • 重庆设计网站wordpress 文档阅读器
  • 设计很好看的网站中国制造网外贸
  • 郑州建网站十大合肥高端网站建设设计公司
  • 网站建设i外部调用wordpress站点文章
  • php做网站需要html做网站需要做哪些东西
  • 免费网站服务器租用工程建设标准化是正规期刊吗
  • 网站制作公司排名前十郑州网站的优化
  • 网站没有做的关键词有排名icp备案查询官方网站
  • 青岛网站建设哪家更好做网站备完备案需要干什么
  • 如何做自己的网站wordpress 获取导航
  • 宁夏网站建设优化做外贸在什么网站最好
  • 一个帮你赚钱的网站是谁做的广告建筑模板多少钱一平方
  • 个人网站设计介绍文字推广员是做什么的