摘要: 问题今天在安装测试websockets服务端时,运行时提示 ……error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory……Oh,... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Linux Shell 基础作为服务器操作系统应该是: * Stable(稳定的) * Robust(健壮的) * Secure(安全的) * High Performance(高性能的)在Linux下默认的shell一般使用bash,当然,还有其他的shell可以使用。使用如下命令... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 目录Linux Shell基础开始Shell编程代码示例代码查看:https://github.com/Furzoom/demo-C/tree/master/src/shell 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 显示name的方法:git config user.namegit config --list或者查看~/.gitconfig文件。改名字:git config --global user.name "Furzoom"# orvi ~/.gitconfig如果不加--global就是... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(4675) 评论(0) 推荐(0) 编辑
摘要: 今天在虚机上装了个CENTOS。装好后,好多命令都提示找不到,如tcpdump、arp、ifconfig。查看安装包,都已经安装过。 ————————————无敌分割线—————————————# ifconfig 提示命令不存在 使用 # /sbin/ifconfig 即可 ... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(3325) 评论(0) 推荐(0) 编辑
摘要: centos 7:systemctl stop firewalld.service #停止systemctl disable firewalld.service #禁用之前的版本:service iptables stop #停止chkconfig iptables off #禁用更... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(114) 评论(0) 推荐(0) 编辑
摘要: pkg-config在一些源码管理中会被使用到。介绍上网查资料,知道了pkg-config这个东西,下面简单介绍一下。pkg-config提供了下面几个功能:检查库的版本号。如果所需要的库的版本不满足要求,它会打印出错误信息,避免链接错误版本的库文件。获得编译预处理参数,如宏定义,头... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(1472) 评论(0) 推荐(0) 编辑
摘要: 查看、添加、提交、删除、找回,重置修改文件git help # 显示command的helpgit show # 显示某次提交的内容 git show $idgit co -- # 抛弃工作区修改git co . # 抛弃工作区修改git add # 将工作文件修改提交到本地暂... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 列出一些常见问题:一,如何使用core文件使用core文件在core文件所在目录下键入:gdb -c core它会启动GNU的调试器,来调试core文件,并且会显示生成此core文件的程序名,中止此程序的信号等等。如果你已经知道是由什么程序生成此core文件的,比如MyServer崩... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 使用gdb和core dump迅速定位段错误 关键字:gdb、段错误、core dump一、什么是core dumpcore:内存、核心的意思;dump:抛出,扔出;core dump:前提:当某程序崩溃的一瞬间,内核会抛出当时该程序进程的内存详细情况,存储在一个名叫core.xxx... 阅读全文
posted @ 2017-10-22 15:50 枫竹梦 阅读(688) 评论(0) 推荐(0) 编辑