上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 39 下一页
摘要: 解决: git reset --hard 阅读全文
posted @ 2021-01-27 09:53 HappyCoder_1 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: int main() { pid_t status; status = system("./test.sh"); if (-1 == status) { printf("system error!"); } else { printf("exit status value = [0x%x]\n", 阅读全文
posted @ 2021-01-20 16:26 HappyCoder_1 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #!/bin/shmkfifo myfifo //创建管道exec 8<>myfifo //管道与8fd绑定rm -rf myfifo for((i=1;i <= "$1";i++))do echo >&8 //分配资源donestart=`date "+%s%N"` //精确到纳秒的时间戳for( 阅读全文
posted @ 2021-01-19 10:36 HappyCoder_1 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 在编译时添加 -lrt 阅读全文
posted @ 2021-01-13 17:45 HappyCoder_1 阅读(437) 评论(0) 推荐(0) 编辑
摘要: makefile gcc 后面增加 -pthread 阅读全文
posted @ 2021-01-13 17:40 HappyCoder_1 阅读(288) 评论(0) 推荐(0) 编辑
摘要: yum -y install psmisc 阅读全文
posted @ 2021-01-12 10:33 HappyCoder_1 阅读(57) 评论(0) 推荐(0) 编辑
摘要: CC = g++ CFLAGS = -std=c++11 -lpthread INCLUDE= -I ./3rd/ all: ServerMain.cpp Server.o $(CC) $(CFLAGS) $(INCLUDE) ServerMain.cpp Server.o -o server Se 阅读全文
posted @ 2020-12-30 14:19 HappyCoder_1 阅读(78) 评论(0) 推荐(0) 编辑
摘要: find / -name "libstdc++.so*" ll libstdc++* cp /usr/local/lib64/libstdc++.so.6.0.21 /usr/lib64/ cd /usr/lib64/ rm -f libstdc++.so.6 ln -s libstdc++.so. 阅读全文
posted @ 2020-12-30 13:55 HappyCoder_1 阅读(2744) 评论(0) 推荐(0) 编辑
摘要: github下载地址:https://github.com/edenhill/librdkafka/tags git clone https://github.com/edenhill/librdkafka.git chmod 777 configure lds-gen.py ./configure 阅读全文
posted @ 2020-12-07 16:40 HappyCoder_1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 源码编译 wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-cpp-3.14.0.tar.gz tar -zxvf protobuf-cpp-3.14.0.tar.gz mkdir 阅读全文
posted @ 2020-12-07 10:50 HappyCoder_1 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 39 下一页