博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

文章分类 -  linux

摘要:lastlast reboot连接时间日志–--由多个程序执行,把纪录写入到/var/log/wtmp和/var/run/utmp,login等程序更新wtmp和 utmp文件,使系统管理员能够跟踪谁在何时登录到系统。进程统计–--由系统内核执行。当一个进程终止时,为每个进程往进程统计文件(pacc... 阅读全文

posted @ 2015-05-28 12:29 bw_0927 阅读(775) 评论(0) 推荐(0)

摘要:http://www.jb51.net/LINUXjishu/81436.html1、setuid与setgid讲解 看一下系统中用到它的地方,以/etc/passwd和/usr/bin/passwd为例: 复制代码代码如下: [root@Salve1 school]# ll /etc/passwd... 阅读全文

posted @ 2015-05-19 13:34 bw_0927 阅读(249) 评论(0) 推荐(0)

摘要:od - dump files in octal and other formatshttp://codingstandards.iteye.com/blog/8057781. 在 vi 或 vim 的命令状态下:%!xxd——将当前文本转换为16进制格式。:%!xxd -r——将当前文件转换回文本... 阅读全文

posted @ 2015-04-08 13:35 bw_0927 阅读(173) 评论(0) 推荐(0)

摘要:假设某主机上的网络接口配置和路由表如下: 这台主机只有一个网络接口连到192.168.232.0/24网络。路由表的 Destination是目的网络地址,Genmask是子网掩码,Gateway是下一跳地址,Iface是发送接口,Flags中的U标志表示此条目 有效(可以禁用某些条目),G标志表示 阅读全文

posted @ 2015-03-11 14:39 bw_0927 阅读(206) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/dashoumeixi/article/details/90676087 http://blog.csdn.net/jnu_simba/article/details/9042467 这两天看csdn有一些关于socket粘包,socket缓冲区设置的问题 阅读全文

posted @ 2015-03-02 14:22 bw_0927 阅读(544) 评论(0) 推荐(0)

摘要:http://blog.codingnow.com/2011/01/fork_multi_thread.html在 POSIX 标准中,fork 的行为是这样的:复制整个用户空间的数据(通常使用 copy-on-write 的策略,所以可以实现的速度很快)以及所有系统对象,然后仅复制当前线程到子进程... 阅读全文

posted @ 2015-02-02 16:46 bw_0927 阅读(122) 评论(0) 推荐(0)

摘要:gcore 动态产生core文件 1、uptime uptime命令用于查看服务器运行了多长时间以及有多少个用户登录,快速获知服务器的负荷情况。 uptime的输出包含一项内容是load average,显示了最近1-,5-,15分钟的负荷情况。它的值代表等待CPU处理的进程数,如果CPU没有时间处 阅读全文

posted @ 2015-01-13 10:03 bw_0927 阅读(382) 评论(0) 推荐(0)

摘要:http://www.ibm.com/developerworks/cn/linux/l-async/http://blog.csdn.net/sunyurun/article/category/1282731asio更适合于windows下网络服务器开发,因为它使用了非阻塞异步模型(所谓的Proa... 阅读全文

posted @ 2015-01-08 13:08 bw_0927 阅读(488) 评论(0) 推荐(0)

摘要:http://linuxtoy.org/archives/efficient-editing-with-vim.htmlhttp://vimdoc.sourceforge.net/htmldoc/http://vim.wikia.com/wiki/Best_Vim_Tipshttp://www.la... 阅读全文

posted @ 2014-12-30 12:48 bw_0927 阅读(217) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/zhuyp1015/p/3618863.htmlhttps://www.ibm.com/developerworks/cn/linux/l-cn-deadlock/pstackgcore(gdb) generate-core-file连续多次pstack... 阅读全文

posted @ 2014-12-24 14:54 bw_0927 阅读(323) 评论(0) 推荐(0)

摘要:http://blog.sina.com.cn/s/blog_69b5d2a50100mfdy.htmlSwap的调整对Linux服务器,特别是Web服务器的性能至关重要。通过调整Swap,有时可以越过系统性能瓶颈,节省系统升级费用。Swap空间的作用可简单描述为:当系统的物理内存不够用的时候,就需... 阅读全文

posted @ 2014-11-20 08:18 bw_0927 阅读(294) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/pbymw8iwm/article/details/7876797 pstree pstack strace 1. 默认设置下,在调试多进程程序时GDB只会调试主进程。但是GDB(>V7.0)支持多进程的分别以及同时调试,换句话说,GDB可以同时调试多个程序 阅读全文

posted @ 2014-09-15 14:31 bw_0927 阅读(180) 评论(0) 推荐(0)

摘要:http://it-eye-lee.iteye.com/blog/1922032环境:主机操作系统是Windows7,虚拟机是CentOs5.5,虚拟机是VirtualBox 3.2.12。1. 安装增强功能包(Guest Additions)安装好CentOs5.5后,运行CentOs5.5并登录... 阅读全文

posted @ 2014-09-15 12:49 bw_0927 阅读(1251) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/ithomer/article/details/5945152core dump又叫核心转储, 当程序运行过程中发生异常, 程序异常退出时, 由操作系统把程序当前的内存状况存储在一个core文件中, 叫core dump. (linux中如果内存越界会收到S... 阅读全文

posted @ 2014-09-12 11:19 bw_0927 阅读(1396) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/my_life/articles/6401269.html yum whatprovides libstdc++.so.6 yum install libstdc++.so.6 --setopt=protected_multilib=false yum 阅读全文

posted @ 2014-09-11 09:59 bw_0927 阅读(251) 评论(0) 推荐(0)

摘要:info localstracegenerate-core-filegdb /path/to/core/file/proc/sys/kernel/core_ https://www.kernel.org/doc/Documentation/sysctl/kernel.txthttp://p... 阅读全文

posted @ 2014-03-20 10:50 bw_0927 阅读(521) 评论(0) 推荐(0)

摘要:http://kenby.iteye.com/blog/1173862 http://hi.baidu.com/vv1133/item/68ab72f37976570884d278a8 http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/in 阅读全文

posted @ 2014-03-03 16:12 bw_0927 阅读(2416) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/anonymalias/article/details/9938865前面已经讨论过Linux下个各种进程间的通信方式:管道,FIFO,消息队列,他们的共同特点就是通过内核来进行通信(假设POSIX消息队列也是在内核中实现的,因为POSIX标准并没有限定它的... 阅读全文

posted @ 2014-01-20 16:44 bw_0927 阅读(692) 评论(0) 推荐(0)

摘要:gdb strace dstat lsof The lsof -i command lists all open files associated with Internet connections. It is similar in format to netstat -a -p . lsof – 阅读全文

posted @ 2014-01-15 16:31 bw_0927 阅读(120) 评论(0) 推荐(0)

摘要:http://www.slashroot.in/bash-shell-shortcuts-every-system-administrator-must-knowThe default shell that most of the Linux distribution provides is bash. Bash stands for Bourne Again Shell. Being a system administrator you need to work with bash in day to day life. Increasing the knowledge of the she 阅读全文

posted @ 2013-12-26 10:56 bw_0927 阅读(677) 评论(1) 推荐(1)