随笔分类 -  Linux

摘要:1. 安装wine:https://tipsonubuntu.com/2019/02/01/install-wine-4-0-ubuntu-18-10-16-04-14-04/ 1)enable 32 bit architecture: sudo dpkg --add-architecture i3 阅读全文
posted @ 2020-04-22 19:54 qiujiejie 阅读(1018) 评论(0) 推荐(0)
摘要:SOCKET相关: #include<sys/socket.h> socket():创建套接字。 bind():将套接字绑定到端口。 TCP: listen():监听有无主机要求连接(服务器端)。 accept():有连接来,返回一个描述符。 connect():连接到服务器(客户端)。 send( 阅读全文
posted @ 2020-04-15 17:00 qiujiejie 阅读(131) 评论(0) 推荐(0)
摘要:netstat:查看端口占用状态 netstat -ap :显示占用端口的线程的pid和名称(a: all, p: with pid/program name)。 ps:查看进程 ps -efa:显示所有进程(e: all, f: full-format, a: with tty)。 ps -T - 阅读全文
posted @ 2020-03-24 16:43 qiujiejie 阅读(160) 评论(0) 推荐(0)