上一页 1 ··· 504 505 506 507 508 509 510 511 512 ··· 542 下一页
摘要: http://en.wikipedia.org/wiki/Category:Unix_signals1.SIGHUP信号UNIX中进程组织结构为 session (会话)包含一个前台进程组及一个或多个后台进程组,一个进程组包含多个进程。一个session可能会有一个session首进程,而一个session首进程可能会有一个控制终端。一个进程组可能会有一个进程组首进程。进程组首进程的进程ID与该进程组ID相等。这儿是可能会有,在一定情况之下是没有的。与终端交互的进程是前台进程,否则便是后台进程。SIGHUP会在以下3种情况下被发送给相应的进程:1、终端关闭时,该信号被发送到session首进程 阅读全文
posted @ 2011-12-28 10:34 规格严格-功夫到家 阅读(447) 评论(0) 推荐(0) 编辑
摘要: JVM ShutdownThe JVM can shut down in either an orderly or abrupt manner. An orderly shutdown is initiated when the last "normal" (nondaemon) thread terminates, someone calls System.exit, or by other platform-specific means (such as sending a SIGINT or hitting Ctrl-C). While this is the sta 阅读全文
posted @ 2011-12-27 23:35 规格严格-功夫到家 阅读(741) 评论(0) 推荐(0) 编辑
摘要: Home Made Java Virtual Machinehttp://www.codeproject.com/KB/cpp/jvm.aspx 阅读全文
posted @ 2011-12-27 20:56 规格严格-功夫到家 阅读(128) 评论(0) 推荐(0) 编辑
摘要: This "detail" is not abstracted away when interacting with the Java Native Interface. 32-bit DLLs can't be loaded with a 64-bit JVM (and vice versa). So this is quite essential information for anyone using JNI. It's a pity that there seems to be no portable way to obtain this info. 阅读全文
posted @ 2011-12-27 20:55 规格严格-功夫到家 阅读(569) 评论(0) 推荐(0) 编辑
摘要: BASH增加日志功能 如果工作中遇到了比较囧的情况,机器被人攻破了,黑客登录了你的系统(当然我们会尽全力防止这样的事情发生)你一定会希望系统记录下来哪个用户做过哪些操作。History功能并不能满足这个要求,因为黑客的智商应该会告诉他在离开的时候删除history记录(除非你遇到个菜鸟黑客)。 那么我们怎么预防呢?这里的方法是给bash来个记录日志,谁在什么时间操作了什么命令,都写到messages里面去。下面是具体步骤:1. 下载并打补丁#cd /home/soft#wget http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz#tar zxf bash-4 阅读全文
posted @ 2011-12-27 15:00 规格严格-功夫到家 阅读(387) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/space.phphttp://www.ibm.com/developerworks/cn/linux/l-kernel-logging-apis/http://linuxbpm.blog.51cto.com/1823930/364579http://wenku.baidu.com/view/e3336c8483d049649b665826.html 阅读全文
posted @ 2011-12-27 14:46 规格严格-功夫到家 阅读(233) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lzyzuixin/article/details/6915399http://blog.itpub.net/category/35701/55237基本的一些概念: 1)syslog的日志为8个等级,从0到7,详细的信息,man syslog就可以了.默认是info.2)我们的系统日志在/var/log/下面,像messages,secure等等,这里要说明的,不是你有操作,系统就会将其写入到对映的日志里也就是说想写日志信息到里面,只能通过syslog系统函数.3)syslog日志系统提供远程日志写入功能,即A机器开放syslog的服务,并开放远程s 阅读全文
posted @ 2011-12-27 14:43 规格严格-功夫到家 阅读(858) 评论(0) 推荐(0) 编辑
摘要: exit(int status)函数是中断当前的进程,返回到当前进程的调用者,即系统,并且还返回给系统一个退出码,即ststus;我们可以利用DOS中的程序异常结束的返回值errorlevel来获得;如:程序exitcode.c#include <stdlib.h>void main( void ){ exit( 10 );}然后写一个批处理文件getexitcode.batexitcode.exeecho %errorlevel%先编译C程序,然后执行批处理文件就可以发现我们得到了退出码了;http://blog.sina.com.cn/s/blog_5f18ff880100h5 阅读全文
posted @ 2011-12-27 13:58 规格严格-功夫到家 阅读(928) 评论(0) 推荐(0) 编辑
摘要: http://www.ibm.com/developerworks/cn/aix/library/au-aixuseradmin/ 阅读全文
posted @ 2011-12-27 12:07 规格严格-功夫到家 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1、根据端口号,找到PCB/ADDRdc-test1<root>netstat -Aan|grep 7013#PCB/ADDR Proto Recv-Q Send-Q Local Address Foreign Address (state)f100060003614398 tcp 0 0 127.0.0.1.7013 *.* LISTENf10006000077ab98 tcp 0 0 172.16.10.10.7013 *.* LISTEN2、用rmsock命令,找到进程id。dc-test1<root>rmsock f100060003614398 tcpcbTh 阅读全文
posted @ 2011-12-27 12:05 规格严格-功夫到家 阅读(3531) 评论(0) 推荐(0) 编辑
上一页 1 ··· 504 505 506 507 508 509 510 511 512 ··· 542 下一页