Archive for the ‘Linux’ Category

[Linux] linux 自动加载自定义模块

2010.11 18

在 /etc/rc.sysinit中: # Load other user-defined modules for file in /etc/sysconfig/modules/*.modules ; do [ -x $file ] && $file done 我们只要在/etc/sysconfig/modules/下建立自己的*.modules模块即可。 Read the rest of this entry

[Linux] mikrotik

2010.11 14

前几天得了一份兼职!网吧里的技术网管。 对网吧还是很“陌生”的。今天下午说有两台电脑有点问题。 到那里一看,原来是都很慢啊。就是在网络游戏的时候,很卡。我就下意识的用arp -a 查看当前的arp表。果不其然,arp中毒 Read the rest of this entry

[AMP] WordPress 皮肤

2010.10 11

最近一直在修改wordpress的皮肤。 在这个过程中又复习了一下css。以前的一些很模糊的概念,现在也慢慢清晰了。 就像是css那本说中说的那样,学一样东西只有在运用中才能更好的学习。通过自己修改css,可以马上看到浏览器中 Read the rest of this entry

[Linux] Ext2Read

2010.10 2

今天刚发现了个在windows下读取ext4的小软件。 主页:http://sourceforge.net/projects/ext2read/ Read the rest of this entry

[Internet] 由日志文件想到的

2010.9 18

今晚上在查看日志分析的时候无意中注意到一个现象:发现404错误中,有很多是别人去有意下载一些特定的文件。如www.rar 可能是有些人把网站备份成这个文件或者是admin_login.asp 登陆的地方 38f946e7ca9917949b9530c9423b49b7000 网络实在 Read the rest of this entry

[Linux] shell 脚本加密

2010.9 7

shell用起来很方便,也很容易修改。 可是有一点就是:脚本里一些很敏感的东西如密码等别人很容易看到。到网上一搜发现了一个号软件。shc,主页:http://www.datsi.fi.upm.es/~frosal/ 安装很简单,下载下来,解压,运行make一步一步来 Read the rest of this entry

[Linux] AWStats 安装

2010.9 6

今天突然想起要安装Awstats。 http://awstats.sourceforge.net/ 官方网站下载先。 解压后得到几个目录: 38f946e7ca9917949b9530c9423b49b7001 在tools下有awstats_configure.pl安装程序。 1:先移动这些目录到/usr/local 2:运行tools下awstats_configure… Read the rest of this entry

[Linux] tar 删除单个文件

2010.9 2

不用解包,删除tar包中单个文件 tar –delete -f xxx.tar file 其中file如果在某个目录下,写全路径。例子如下: 38f946e7ca9917949b9530c9423b49b7002 Read the rest of this entry

[AMP] cronolog

2010.8 22

用cronolog格式化apache的日志文件。 从http://cronolog.org/ 下载,安装。 主要是apche的配置文件的修改 httpd.conf 38f946e7ca9917949b9530c9423b49b7003 以后日志就每天保存在一个文件里了,便于日后的分析。 Read the rest of this entry

[AMP] php setcookie

2010.8 9

php在设置cookie的时候,老是提示错误:不能修改头信息。 我们知道php在输出html协议中的一些头项信息的时候,必须在任何输出之前。但是今晚上,就出怪事了。明明在setcookie的前面没有输出任何信息啊,怎么还提示错误? 最后 Read the rest of this entry