上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 38 下一页
  2013年9月13日
摘要: 详见:http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.kerneltechref%2Fdoc%2Fktechrf1%2Fcopyin.htmcopyin Kernel ServicePurposeCopies data between user and kernel memory.Syntax#include #include int copyin ( uaddr,kaddr,count)char *uaddr;char *kaddr;int count;ParametersItemDescri 阅读全文
posted @ 2013-09-13 14:14 语辰 阅读(826) 评论(0) 推荐(0) 编辑
摘要: ints,i,len,err=0这个是只给err赋了值还是这四个都有? 阅读全文
posted @ 2013-09-13 14:10 语辰 阅读(263) 评论(0) 推荐(0) 编辑
摘要: c语言中 ->符号是什么意思? 比如c=a->ba为结构体或联合体的指针,->表示调用其成员 阅读全文
posted @ 2013-09-13 14:05 语辰 阅读(1733) 评论(0) 推荐(0) 编辑
  2013年9月11日
摘要: 在对系统进行某些更新时,你可能不希望用户登录,这时可以使用/ e t c / n o l o g i n文件,大多数系统都提供这个文件。一旦在/ e t c目录中使用t o u c h命令创建了一个名为n o l o g i n的文件,除r o o t以外的任何用户都将无法登录。如果系统不支持这种方法,你一样还可以做到这点—可以自己创建这个文件,下面就是具体的做法。这个文件要对所有用户可读,可以在/ e t c / p r o f i l e文件中加入下面的代码: if [ -f /etc/nologin ];then if [ $LOGNAME != "root" ];t 阅读全文
posted @ 2013-09-11 15:42 语辰 阅读(297) 评论(0) 推荐(0) 编辑
摘要: p i n g a l l:一个按照/ e t c / h o s t s文件中的条目逐一p i n g所有主机的脚本它能够按照/ e t c / h o s t s文件中的条目逐一p i n g所有的主机。该脚本列出/ e t c / h o s t s文件并查找其中的非注释行(不以#开头的行)。然后使用一个w h i l e循环读入所有的行,接下来使用a w k分析出每行的第一个域,并把它赋给变量A D D R。最后使用f o r循环逐一p i n g相应的地址。#!/bin/sh#pingallcat /etc/hosts|grep -v "^#"|while rea 阅读全文
posted @ 2013-09-11 15:06 语辰 阅读(248) 评论(0) 推荐(0) 编辑
  2013年9月10日
摘要: fprintf 功能 传送格式化输出到一个文件中用法 #include stdio.hint fprintf( FILE *stream, const char *format,...);fprintf()函数根据指定的format(格式)(格式)发送信息(参数)到由stream(流)指定的文件.fprintf()只能和printf()一样工作,fprintf()的返回值是输出的字符数,发生错误时返回一个负值。在LINUX/UNIX操系统中成功返回0,失败返回-1。并置errno值. 阅读全文
posted @ 2013-09-10 11:31 语辰 阅读(2825) 评论(0) 推荐(0) 编辑
  2013年9月3日
摘要: [root@localhost ~]# cat /etc/hosts.allow ## hosts.allow This file contains access rules which are used to# allow or deny connections to network services that# either use the tcp_wrappers library or that have been# started through a tcp_wrappers-enabled xinetd.## See 'man 5 hosts_options' and 阅读全文
posted @ 2013-09-03 17:36 语辰 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 系统默认的shell在,/etc/default/useradd中,添加用户的时候如果不指定shell,默认的shell就是该文件下制定的文件 阅读全文
posted @ 2013-09-03 16:22 语辰 阅读(231) 评论(0) 推荐(0) 编辑
摘要: vi /etc/sysconfig/iptables把icmp那行的ACCEPT改成DROP,重启iptables 阅读全文
posted @ 2013-09-03 15:21 语辰 阅读(169) 评论(0) 推荐(0) 编辑
  2013年8月30日
摘要: 环境:最小化centos6.2准备:rsyslog-4.6.1.tar.gz loganalyzer-3.6.3.tar.gzwget http://download.adiscon.com/loganalyzer/loganalyzer-3.6.3.tar.gz开始安装:yum -y install rsyslog rsyslog-mysql mysql mysql-devel mysql-server php php-mysql php-pdo php-common php-gd httpd gcc make wgettar xf rsyslog-4.6.1.tar.gz./configu 阅读全文
posted @ 2013-08-30 17:49 语辰 阅读(294) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 38 下一页