一、拓扑 二、安装负载均衡服务器软件 wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.18.tar.gz &nb
一、拓扑 二、安装软件 wget http://nginx.org/download/nginx-1.0.11.tar.gz wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz &nb
拓扑图: 1、LVS配置脚本: 需要安装:ipvsadm-1.24-10.i386.rpm vi /etc/rc.d/init.d/lvsdr #!/bin/bash vip=192.168.1.249 web1=192.168.1.251 web2=192.168.1.252 ./etc/rc.d/init.d/functions
########本脚本应用在生产环境中,是运用mysql主从的基础上######## vi mysqlm-s.sh #!/bin/bash ip=`ifconfig eth0|sed -n 2p|awk '{ print $2 }'|awk -F : '{ print $2 }'` port=`netstat -anl|grep 3306 |sed -n '1p'
Linux+apache+mysql+python+mod_python+Django 说明:系统rhel 5.3,默认安装httpd、mysql,没有安装的,请下载安装RPM包,删除/etc/httpd/modules/mod_python.so,如果有的话。 一、安装python 1 wget http://www.python.org/ftp/python/2.7.1/Python
1 安装sendEmail tar xvf sendEmail-v1.56.tar.gz mv sendEmail-v1.56 sendEmail 2 添加apache虚拟主机shell脚本: vi addVirtual.sh #!/bin/bash cat <<EOF>> /etc/httpd/conf/httpd.conf <
wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz tar xvf sendEmail-v1.56.tar.gz mv sendEmail-v1.56 sendEmail vi /etc/ssh/sshrc #!/b
wget http://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz wget http://inotify.aiken.cz/d
cat disk.sh #!/bin/bash for i in `df |sed 1d | awk '{print $5}' | sed 's/%//g'` ####获取后循环比较大小#### do if [ $i -gt 10 ] ###这里阀值设置为10,为了方便测试效果### then df -lh
vi ip.sh #!/bin/bash ifconfig $1|sed -n 2p|awk '{ print $2 }'|awk -F : '{ print $2 }' ##ifconfig $1|sed -n 2p|awk '{ print $2 }'|tr -d 'addr:'#这个也可以实现#### 执行: ./ip.sh eth0 192.168.2.
vi useradd.sh #!/bin/bash i=1 while [ $i -le 5 ] do useradd red$i a=`sh ./passwd.sh` echo " red$i:$a " >> u
vi /home/shell/useradd.sh #!/bin/bash i=1 while [ $i -le 5 ] do useradd test$i let i++ done 执行:sh useradd.sh cat /etc/passwd|grep test test1:x:502:502::
vi /home/shell/passwd.sh #!/bin/bash a=(a b c d e A B C D E F @ $ % ^ 0 1 2 3 4 5 6 7 8 9) for ((i=0;i<10;i++));do echo -n ${a[$RANDOM % ${#a[@]
根据博客里varnish缓存服务器和nginx缓存服务器为基础,硬件配置一样 varnish缓存服务器 [root@1 ~]# ab -t 60 -c 1024 http://192.168.2.4:80/ This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996
注明:根据《实战Nginx:取代Apache的高性能Web服务器>》第九章修改,详细请参考以上这本书 wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.20.tar.gz wget http://nginx.org/download/nginx-1.1.10.tar.gz &nbs
下载地址:http://pkgs.fedoraproject.org/repo/pkgs/varnish/varnish-2.1.3.tar.gz/357d99a760de173d841ac37bf2052be8/varnish-2.1.3.tar.gz 一、安装varnish # tar zxvf varnish-2.1.3.tar.gz #cd varnish-2.1.3 #/conf
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号