摘要:
解决: git reset --hard 阅读全文
摘要:
int main() { pid_t status; status = system("./test.sh"); if (-1 == status) { printf("system error!"); } else { printf("exit status value = [0x%x]\n", 阅读全文
摘要:
#!/bin/shmkfifo myfifo //创建管道exec 8<>myfifo //管道与8fd绑定rm -rf myfifo for((i=1;i <= "$1";i++))do echo >&8 //分配资源donestart=`date "+%s%N"` //精确到纳秒的时间戳for( 阅读全文
摘要:
yum -y install psmisc 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
github下载地址:https://github.com/edenhill/librdkafka/tags git clone https://github.com/edenhill/librdkafka.git chmod 777 configure lds-gen.py ./configure 阅读全文
摘要:
源码编译 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 阅读全文