![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
游研
勝ち取った
这个作者很懒,什么都没留下…
展开
-
unique_ptr 指向其他对象后释放当前当前对象的测试
emo原创 2023-01-19 15:38:16 · 134 阅读 · 1 评论 -
gdb coredump调试
gdb coredump原创 2022-10-28 09:40:57 · 397 阅读 · 0 评论 -
git 添加代理
git config --global http.proxy “127.0.0.1:1080”git config --global https.proxy “127.0.0.1:1080”原创 2022-02-07 17:23:59 · 722 阅读 · 0 评论 -
c++ string类型内存分配
#include <iostream>#include <cstdlib>#include <string>using std::string;using std::cout;using std::endl;//重写string类的new操作符,添加一个可以识别malloc操作的输出void* operator new(std::size_t n){ cout<<"分配"<<n<<"字节"<<end原创 2021-12-30 21:04:09 · 2763 阅读 · 2 评论 -
gcc动态库和静态库的使用
-Wl选项告诉编译器将后面的参数传递给链接器。-rpath使得execute记住链接库的位置.-W -rpath=./调用当前文件中的.so文件动态库#include <stdio.h>#include"test2.h"int main(void){ func_a(); struct St *s= func_b(); printf("hello\n"); // printf("%s\n",s.name); return 0;}#incl原创 2021-12-27 20:05:58 · 412 阅读 · 0 评论 -
gcc编译
gcc -o :指定输出的可执行文件的名称,不指定时为a.outgcc -c:只编译不链接,生成.o文件。这时出现未定义的函数,即在其他文件里的函数并不会报错。如果是结构体定义在其他文件里,则会发生报错。gcc -g,是为了gdb用。如下//test1.c#include <stdio.h>void func_a(){ printf("FUNC_A\n");}//test2.c#include <stdio.h>int main(void){原创 2021-12-27 18:37:16 · 401 阅读 · 0 评论 -
skynet vscode ubuntu1804 调试
下载编译skynet源码vscode 安装用vscode打开skynet 工程目录新建.vscode文件夹launch.json{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ {原创 2021-12-07 17:26:16 · 682 阅读 · 0 评论 -
Ubuntu docker + k8s+ dashboard安装
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -sudo apt-key fingerprint 0EBFCD88sudo add-apt-repository \> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \> $(lsb_release -cs) \> stable"设置原创 2021-12-07 17:18:38 · 955 阅读 · 0 评论 -
mongodb高可用集群的搭建
shard,mongodb的分片集合,将一个shard部署在不同的机器上。当一台机器宕机后,可以从另一台机器上获取数据config servers 用于给router分配合适的shard.原创 2021-11-28 17:00:45 · 1113 阅读 · 0 评论 -
git指令
git 上传git add .git commit -m “2021.09.22上传”git push --set-upstream http://xxx.xxx.xxx.git原创 2021-09-22 11:27:56 · 84 阅读 · 0 评论