跳至内容
小桥流水人家
分类
Baby
(7)
Code
(39)
Linux
(205)
windows
(35)
wordpress
(11)
互联网
(52)
生活唠嗑
(75)
近期评论
小桥流水人家
发表在《
留言板
》
莫良
发表在《
留言板
》
小桥流水人家
发表在《
留言板
》
莫良
发表在《
留言板
》
Longlan
发表在《
crontab每月的最后一天
》
标签
adsense
apache
apt-get
baidu
centos
cpanel
curl
debian
directadmin
DNS
firefox
for
ftp
google
grep
iis
iptables
Linux
mysql
nginx
pagerank
perl
Peter's Custom Anti-Spam
PHP
pptpd
proftpd
rsync
sed
seq
shell
spam
ssh
vpn
wget
windows
windows2003
wordpress
yum
春节
生活
百度
离职
结婚
虚拟主机
谷歌
链接
似水流年-Longlan的私人博客
黄杰敏的博客
页面
留言板
留言板
最近很多朋友来email需要友情链接,pr=>3 google百度收录正常才留下信息,最好是技术类的。
谢谢哦!
博主您好,请问博主的DA如何防范CC攻击(包括ab 压力测试),我的DA是在512M内存下的,如果放入discuz,并进行ab压力测试以后,会生成大量的php-cgi 进程,直到占满内存和SWAP然后崩溃。请问博主如何防范呢?
你好,请参考iptables或类似的防火墙工具,如iptables可以限制每IP的连接数,以下一个IP只允许20个连接,用ab或webbench等压力工具测试,超过20个会被自动断开。
iptables -I INPUT -p tcp –syn –dport 80 -m connlimit –connlimit-above 20 -j REJECT –reject-with tcp-reset
博主交换链接吗?同是技术类~~~可以的话通知下。
你好,友情链接已添加。 (没诚意,都没看到你加我···)
实然有个问题,想交流一下:
平台不知道你在不在用secureCRT
怎么才能让他显示 的屏显信息跟你的页面上的代码颜色风格一样漂亮呢??不知道,想没想过,这个问题,我的crt 现在,虽然有颜色,但是不好看。不明了。
adminjq@gmail.com 期待你的回复。!
Jack你好!
你指的是VIM的颜色吗? SecureCRT本身的颜色估计没办法达到你的要求: 主机标签->会话选项->仿真->勾选ANSI颜色,并选择Linux
[root@localhost ~]# more /etc/vimrc
if v:lang =~ “utf8$” || v:lang =~ “UTF-8$”
set fileencodings=utf-8,latin1
endif
set nocompatible ” Use Vim defaults (much better!)
set bs=indent,eol,start ” allow backspacing over everything in insert mode
“set ai ” always set autoindenting on
“set backup ” keep a backup file
set viminfo=’20,\”50 ” read/write a .viminfo file, don’t store more
” than 50 lines of registers
set history=50 ” keep 50 lines of command line history
set ruler ” show the cursor position all the time
” Only do this part when compiled with support for autocommands
if has(“autocmd”)
augroup redhat
” In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
” When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line(“‘\””) > 0 && line (“‘\””) <= line("$") | \ exe "normal! g'\"" | \ endif augroup END endif if has("cscope") && filereadable("/usr/bin/cscope") set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb " add any database in current directory if filereadable("cscope.out") cs add cscope.out " else add database pointed to by environment elseif $CSCOPE_DB != "" cs add $CSCOPE_DB endif set csverb endif " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has(“gui_running”)
syntax on
set hlsearch
endif
if &term==”xterm”
set t_Co=8
set t_Sb=dm
set t_Sf=dm
endif
set autoindent
set smartindent
enhanced这个vim包要装,或者直接yum install vim* -y
关注下这篇文章
博主邮箱多少,有空交流下Linux。
你好,在下也只是略知一二,兄弟有事可以这里直接讲,定在第一时间回复。
博主好像也是很久没有更新了,过来关注一下