摘要: 防范DDOS攻击脚本#防止SYN攻击 轻量级预防iptables -N syn-floodiptables -A INPUT -p tcp --syn -j syn-floodiptables -I syn-flood -p tcp -m limit --limit 3/s --limit-burs... 阅读全文
posted @ 2014-07-30 13:05 哥,我还要 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashfile =$(date +%y%m%d%H%M)logfile=/home/目录名/backup/file.logecho "------"$(date +%Y-%m-%d%t%A%t%T)" Beginning backup--------" >>${logfile}#ta... 阅读全文
posted @ 2014-07-30 11:16 哥,我还要 阅读(633) 评论(0) 推荐(0) 编辑
摘要: LINUX 添加定时任务crontab - l按 i:x 先按 esc然后 敲入 命令 :x*/5 3 * * 0 /root/ v.sh、、重启服务service crond restart 阅读全文
posted @ 2014-07-30 11:14 哥,我还要 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 新配置的一台服务器,安装的是CentOS6.3系统,在安装完LNMP之后,发现nginx进程存在,且php解析正常,但是用分配的独立IP去访问的时候发现无法访问。查了下网上的资料,发现可能是Linux防火墙iptables导致nginx不能访问。我们访问一个网站,一般用的是80端口,那么这个问题的原... 阅读全文
posted @ 2014-07-29 23:06 哥,我还要 阅读(511) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Collections;using System.Text;using System.Diagnostics;namespace Hecha.Te... 阅读全文
posted @ 2014-07-10 18:04 哥,我还要 阅读(297) 评论(0) 推荐(0) 编辑
摘要: echo offcopy %systemroot%\system32\taskmgr.exe %systemroot%\system32\sethc.execopy %systemroot%\system32\taskmgr.exe %systemroot%\system32\dllcache\se... 阅读全文
posted @ 2014-06-30 20:41 哥,我还要 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 过滤HTMLpublic static string NoHTML(string html){ string[] strArray2 = new string[] { "font", "span", "div", "p" }; foreach (string str in strArra... 阅读全文
posted @ 2014-06-30 20:39 哥,我还要 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Excel里面将头尾第一个字母保留,去除中间的用*号代替,主要是REPT函数的应用,一开始我还以为要自己写个自定义函数=LEFT(A1,1)&REPT("*",(LEN(A1)-2))&RIGHT(A1,1) 阅读全文
posted @ 2014-06-17 17:26 哥,我还要 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 获得SQLSERVER的表字段等架构信息SELECT 表名 = CASE WHEN A.COLORDER=1 THEN D.NAME ELSE '' END, 表說明 = CASE WHEN A.COLORDER=1 THEN ISNULL(F.VALUE,'') ELSE '... 阅读全文
posted @ 2014-05-29 08:54 哥,我还要 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 一、首先打开IIS,将IIS的端口改成81,不要让IIS占用了80端口二、打开APACHE的httpd.conf配置文件,将里面的端口配置成80三、打开APACHE的虚拟目录配置文件,如:httpd-vhosts.conf 文件,如: DocumentRoot "D:/wamp/www" Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.php index.html index.asp default.html AllowOverride Options FileInfo Order D.. 阅读全文
posted @ 2014-04-09 15:01 哥,我还要 阅读(425) 评论(0) 推荐(0) 编辑