
Centos7
金士顿
这个作者很懒,什么都没留下…
展开
-
Centos7系统安装Qt5.9
Qt下载地址: http://download.qt.io/official_releases/qt/5.9/5.9.1/Qt安装首先安装mesa-libGL-devel,mesa-libGLU-devel,freeglut-devel# yum -y install mesa-libGL-devel mesa-libGLU-devel freeglut-dev原创 2018-02-01 15:36:56 · 6397 阅读 · 5 评论 -
shell脚本read
实例, 文件 test.sh:read -p "请输入一段文字:" -n 6 -t 5 -s passwordecho -e "\npassword is $password"参数说明:-p 输入提示文字 -n 输入字符长度限制(达到6位,自动结束) -t 输入限时 -s 隐藏输入内容$ sh test.sh 请输入一段文字:password is asdfgh...转载 2018-11-01 13:53:42 · 237 阅读 · 0 评论 -
使用gedit出现No protocol specified (gedit:14333): Gtk-WARNING **: cannot open display: :0.0
2012年11月06日 15:40:06 wche1990 阅读数:17159更多个人分类: 学习总结 linux 切换到root权限,在终端下使用gedit时出现下面的错误:No protocol specified(gedit:14333): Gtk-WARNING **: cannot open display: :0.0下面是从网上找到的正解,贴——分析——总结之:...转载 2018-11-01 13:25:02 · 4792 阅读 · 1 评论 -
how to set the core dump file location(and name)?
1、如何长期开启core dump功能? 编辑 /etc/profile,在末尾加上命令:ulimit -c unlimited >/dev/null 2>&1 如果原来文件中有ulimit的相关调用,则直接改那个调用。2、core dump文件的生成方式: 可以修改 /etc/sysctl.conf 文件,加入以下内...原创 2018-10-24 11:05:01 · 210 阅读 · 0 评论 -
-lpthread -lboost_thread undefined reference to `vtable for boost::detail::thread_data_base'问题
同样是boost.asio中用到boost.thread处理I/O,编译出错:undefined reference to `vtable for boost::detail::thread_data_base’环境ubuntu14.04g++ 4.8.4解决办法I had the same question, but -lboost_thread-mt is now deprec...转载 2018-10-22 13:38:50 · 740 阅读 · 0 评论 -
centos7 boost学习1 使用boost::asio实现简易线程池 -lboost_system
转载地址:https://segmentfault.com/a/1190000010674396threadpool.h#include <stdio.h>#include <string.h>#include <iostream>//#include <boost/thread/thread_pool.hpp>#include &...原创 2018-10-17 11:18:07 · 688 阅读 · 0 评论 -
【亲测】centos7下挂载ntfs文件系统类型的移动硬盘
【亲测】centos7下挂载ntfs文件系统类型的移动硬盘【参考】1.http://www.tuxera.com/community/open-source-ntfs-3g/2.http://www.blogjava.net/freeman1984/archive/2013/05/17/399427.html3. http://blog.youkuaiyun.com/hotday_kevin...转载 2018-10-16 13:25:21 · 1370 阅读 · 0 评论 -
Linux C++ 实现线程池
http://blog.youkuaiyun.com/qq_25425023/article/details/53914609 线程池中的线程,在任务队列为空的时候,等待任务的到来,任务队列中有任务时,则依次获取任务来执行,任务队列需要同步。 Linux线程同步有多种方法:互斥量、信号量、条件变量等。 下面是根据互斥量、信号量、条件变量封装的三个类。 线程池中用到了互斥量和信号...转载 2018-10-15 14:52:55 · 273 阅读 · 0 评论 -
linux pthreadpool实现和线程池的用处
#include "threadpool.h"void* work(void* arg){ char *p = (char*) arg; printf("threadpool callback fuction : %s.\n", p); sleep(1);}int main(void){ struct threadpool *pool = thread...转载 2018-10-15 10:42:31 · 976 阅读 · 0 评论 -
centos7下安装wireshark
site:https://blog.youkuaiyun.com/qq_30412139/article/details/79623046centos属于Red Hat,使用yum进行软件依赖检查和处理,不同于ubantu系列的apt 安装软件需要root权限,因此在安装时输入命令 sudo yum install wireshark 这条命令安装wireshark,但没有图形化工具,下面一条命令安装图形...转载 2018-09-22 19:49:20 · 2558 阅读 · 0 评论 -
du
转载地址:https://www.cnblogs.com/DswCnblog/p/5860166.html Linux du命令也是查看使用空间的,但是与df命令不同的是Linux du命令是查看当前指定文件或目录(会递归显示子目录)占用磁盘空间大小,还是和df命令有一些区别的.1.命令格式:du [选项][文件]2.命令功能:显示每个文件和目录的磁盘使用空间。3.命令...转载 2018-11-16 17:03:17 · 838 阅读 · 0 评论