
Linux
文章平均质量分 53
五月_MayWeather
这个作者很懒,什么都没留下…
展开
-
Linux /proc文件夹下文件的功能说明
# cat /proc/bus/usb/devices Displays information about USB Host ports# cat /proc/cmdline Displays boot parameters of kernel# cat /proc/cpuinfo Displays information about the SPEAr CPU# cat /proc原创 2014-09-18 12:08:29 · 496 阅读 · 0 评论 -
VMware Workstation 安装VMware tools. 卸载open-vm-tools
当Ubuntu中已经安装了open-vm-tools时, 需要手动卸载,才能成功安装VMware tools.卸载方法:dkpg-show|grep vm查看是否存在open-vm-tools. 有的话,将其卸载:dkpg --purge open-vm-tool.然后执行./vmware-install.pl 完成VMware to原创 2015-03-20 09:55:28 · 4621 阅读 · 0 评论 -
EPOLL 判断客户端连接关闭
1. TCP recv返回0, 说明对方关闭2. 注册EPOLLERR, 收到事件是关闭3. recv/send 返回-1时, 如果错误不是EWOULDBLOCK或者EINTR, 也主动关闭连接。 #include #include #include #include #include #include #include #include #include #in原创 2015-11-12 11:08:45 · 6790 阅读 · 0 评论 -
OpenWRT 修改MAC地址
最简单的做法是通过串口控制台修改 /etc/config/ 下的网络配置文件 network.两个步骤:步骤一:用vi编辑器打开/etc/config/network 文件步骤二:在其中增加 macaddr 参数,config interface lan option ifname eth2 option status转载 2014-09-24 12:35:15 · 5069 阅读 · 0 评论