2011-01-06

linux下遍历文件夹批量修改文件名(非递归)

在当前目录执行下面命令,将当前文件夹下所有文件名前被加'avatar_'前辍。for file in * ;do mv $file "avatar_"$file; donefind . -name "*.jpg"| while read name;do  na=$(echo $name | tr 'jpg ' 'gif'); mv "$name"
14:45 fxs_2008 评论(0) 有318浏览 编辑
2010-11-08

linux全文搜索挂马文件

grep -lir ^"<script src='......'></script>" / >> ./info然后more ./info
18:30 fxs_2008 评论(0) 有34浏览 编辑
2010-08-24

linux下vim命令出错:command not found的解决办法

linux系统fedora 11下vim命令出错:command not found的解决办法:查了一下安装: rpm -qa |grep vim发现只有一项于是真接升级安装yum install vim
22:17 fxs_2008 评论(0) 有647浏览 编辑
2010-07-11

win7安装svnserver服务 [sc] openSCManager 失败 5 拒绝 访问拒绝

win7下安装subversion 的svnserver作为服务时遇到了这个问题。而在winxp下安装则没有这个问题。google一下,没有答案。下面是自已找的解决方案:建立一个新文件svnSetup.bat.输入:sc create svnserve binpath= "\"C:\Program Files\VisualSVN Server
09:01 fxs_2008 评论(0) 有1243浏览 编辑
2010-07-07

linux下命令行可以连接远程数据库而php的msyql_connect()却不可以的解决方案

遇上了这个该死的问题,linux安全原因:解决:进入 /etc/seLinuxmore config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:
16:40 fxs_2008 评论(0) 有165浏览 编辑
2010-07-05

linux 下apche无法监听端口解决办法(Permission denied: make_sock: could n

想建立一个测试用的虚拟主机,遇到了这个问题:[root@localhost html]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for Se
18:05 fxs_2008 评论(0) 有2440浏览 编辑
2010-07-05

如何查看局域网内哪台是DNS服务器?

win下:运行nslookup 任意域名  如:nslookup wennuan.cn 202.106.196.115就是你的dnsC:\Documents and Settings\a>nslookup wennuan.cnServer:  linedns.bta.net.c
16:33 fxs_2008 评论(0) 有161浏览 编辑
2010-07-01

Apache 多站点虚拟主机配置方法

Apache 多站点虚拟主机配置方法, 有这类需要的朋友可以参考下。修改配置文件 conf/httpd.conf 1.加入下面两句 NameVirtualHost *:80 Include conf/vhosts 2.在conf目录中建立vhosts目录 然后在 vhosts 目录下面建立相应的站点配置文件 如建立 hhj.i
13:04 fxs_2008 评论(0) 有101浏览 编辑
2010-07-01

linux错误httpd: apr_sockaddr_info_get() failed for localhost.t

linux下配置虚拟主机时遇到的问题。httpd: apr_sockaddr_info_get() failed for localhost.termwikidevhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
10:31 fxs_2008 评论(0) 有670浏览 编辑