跳转到主要内容

centos 6 搭建vpn最优雅的方法

首先参考digitalocean这篇文章《How To Setup Your Own VPN With PPTP》,按照文章描述的四个步骤就设置好pptpd,windows客户端顺利连接上,可以pi


Centos 6.5环境下phpmyadmin无法运行(Segmentation fault (11))

centos 6.5是目前最新的32位版本,程序版本分别是Apache2.2和php5.3.3
yum安装apache+mysql+php+eaccelerator+phpmyadmin后,phpmyadmin竟然无法运行。查看apache的error.log,出现多条以下记录:


centos上如何yum安装rar/unrar?


vim /etc/yum.repos.d/dag.repo

添加以下内容:

[dag]

name=Dag RPM Repository for Red Hat Enterprise Linux


通过access.log日志(apache/nginx/icecast)分析访问频繁的ip地址

linux命令如下:

tail -1000 access.log | awk -F"-" {'print $1'} | grep -i -v -E "google|yahoo|baidu|msnbot"| sort |uniq -c |sort -rn |awk '{ if($1>50) print $2" "$1";" }'


icecast模拟负载测试脚本


#!/bin/sh
#
# run concurrent curls which download from URL to /dev/null. output total
# and average counts to results directory.
#