Linux 平台 编译的时候加上 c++11 和 多线程库 g++ -Wall -std=c++0x -pthread -o server server.cpp server 和client 都是 q 退出