linux简单服务器初学

1.在合适的文件夹下touch server.c client.c Makefile

2.vi server.c  ,输入服务器代码

3. vi Makefile 

4. 在bash 中输入make

编译通过

5. ./server即可启动服务器

6. 新开一个bash,输入 tel 127.0.0.1 8000   连接到本地的服务器,输入hello

   在刚才呢个bash中即可看到hello

猜你喜欢

转载自blog.csdn.net/qq_41572503/article/details/87904993
今日推荐