
Linux
bit_x
这个作者很懒,什么都没留下…
展开
-
ubuntu 使用root账号 登陆
新接触ubuntu的人(base on debian),大多会因为安装中没有提示root密码而不太清楚为什么会这样。根据ubuntu的中文文档,总结了本文。 关键词: 如何设定/改变/启用 root 使用者的密码? sudo passwd root 为了启用 root 帐号 (也就是 设置一个口令) 使用: sudo passwd root 当你使用完转载 2010-04-04 16:23:00 · 1629 阅读 · 0 评论 -
The difference between /sbin/sh and /bin/sh
<br />Both /sbin/sh and /usr/bin/sh shells are Bourne shells. <br /><br /> The difference is that /sbin/sh is statically linked and /usr/bin/sh is <br /> dynamically linked. There is also /bin/sh, however /bin is just a symbolic <br /> link to /us转载 2010-06-11 11:34:00 · 671 阅读 · 0 评论 -
网络套接字socket
一、socket建立的客户端和服务器端图示: 二、注意事项: 1、大小端:因为不知道发送端机器使用的字节序是否和接收端机器使用的字节序相同,所以发送前都将其转换为网络字节序(大端字节序),接受时在讲网络字节序转换为本机字节序。 发送端:在发送非字符串的类型(如整型)时,要注意在发送前使用htonl或者htons将其本机字节序(可能大端,也可能小端)转换为网络字原创 2013-11-13 10:49:26 · 1641 阅读 · 0 评论 -
socket epoll 模型
/* * File: main.c * Author: xys * * Created on 2013年12月12日, 下午3:14 * * 实现功能:通过epoll,处理多个socket请求 * 监听一个端口,监听到有链接时,添加epoll_event * * 命令行下 telnet localhost 3304 */ #include #include #i原创 2013-12-12 18:13:23 · 3381 阅读 · 0 评论