2015年7月18日

syslog函数及syslog配置

摘要: syslog函数原型 #include void openlog(const char *ident, int option, int facility); void syslog(int priority, const char *format, ...); void clos... 阅读全文

posted @ 2015-07-18 16:49 Banting 阅读(679) 评论(0) 推荐(0) 编辑

如何查看linux版本

摘要: 一 查看linux内核版本 1) cat /proc/versionubuntu@ubuntu:~$ cat /proc/versionLinux version 3.16.0-23-generic (buildd@kissel) (gcc version 4.9.1 (Ubuntu 4.9.1-1... 阅读全文

posted @ 2015-07-18 14:49 Banting 阅读(206) 评论(0) 推荐(0) 编辑

nohup后台运行以及重定向标准输出和标准异常

摘要: 今天在Xshell 终端上运行一个程序A,然后关闭Xshell 终端,然后进入Xshell后用ps -ef | grep 进程名 发现进程A已经挂了。后来上网查找了一些资料,原因shell开启一个进程,当shell终端关闭后,它会向所有由终端开启的进程发起一个hangup信号,所有接些信号的进程... 阅读全文

posted @ 2015-07-18 11:16 Banting 阅读(4432) 评论(0) 推荐(0) 编辑

导航