制作简单的安装包的时候可以简单的用cat命令连接两个文件,
一、http_load
程序非常小,解压后也不到100K
http_load以并行复用的方式运行,用以测试web服务器的吞吐量与负载。但是它不同于大多数压力测试工具,它可以以一个单一的进程运行,一般不会把客户机搞死。还可以测试HTTPS类的网站请求。
下载地址:http://soft.vpser.net/test/http_load/http_load-12mar2006.tar.gz
安装很简单
#tar zxvf http_load-12mar2006.tar.gz
#cd http_load-12mar2006
#make && make install
If you get this error when starting Apache 2 here is the fix…
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for someserver1.host-name.net
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for someserver1.host-name.net
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
The repair is very easy, just fix your hosts file locate at `/etc/hosts`.
First, determing your hostname of the machine that you are on…
#> hostname
someserver1.host-name.net
Then open your hosts file…
#> vi /etc/hosts
Then change all the host items to match
::1 localhost.someserver1.host-name.net localhost
127.0.0.1 localhost.someserver1.host-name.net localhost
192.1.0.123 someserver1.host-name.netsomeserver1
192.1.0.123 someserver1.host-name.net.
Then start the server again…
#> apachectl start
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
#> …
All set!!!
本日志由 flyinweb 于 2011-12-09 10:10:25 发表到 WEB服务器 中,目前已经被浏览 272 次,评论 0 次;
作者添加了以下标签: apr_sockaddr_info_get() failed;
A reverse proxy is a proxy server that is installed in a server network. Typically, reverse proxies are used in front of Web servers such as Apache, IIS, and Lighttpd. How do I setup nginx web server as SSL reverse proxy?
When you've multiple backend web servers, encryption / SSL acceleration can be done by a reverse proxy. Nginx can act as SSL acceleration software. It provided the following benefits:
本日志由 flyinweb 于 2011-12-09 09:38:39 发表到 WEB服务器 中,目前已经被浏览 264 次,评论 0 次;
作者添加了以下标签: Nginx,SSL Reverse Proxy,Load Balanced SSL Proxy;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
Keepalived provides a strong and robust health checking for LVS clusters. It implements a framework of health checking on multiple layers for server failover, and VRRPv2 stack to handle director failover. How do I install and configure Keepalived for reverse proxy server such as nginx or lighttpd?
If your are using a LVS director to loadbalance a server pool in a production environment, you may want to have a robust solution for healthcheck & failover. This will also work with reverse proxy server such as nginx.
本日志由 flyinweb 于 2011-12-09 09:36:24 发表到 WEB服务器 中,目前已经被浏览 282 次,评论 0 次;
作者添加了以下标签: Nginx,keepalived,IP Failover;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
How do configure to release and obtain VIP (virtual IP) when nginx is dead, down or system is rebooted for the kernel upgrades?
Edit /usr/local/etc/keepalived/keepalived.conf and add the following section to check whether nginx is alive or dead:# vi /usr/local/etc/keepalived/keepalived.conf
Updated file on both lb0 and lb1:
vrrp_script chk_http_port { script "/usr/bin/killall -0 nginx" interval 2 weight 2} vrrp_instance VI_1 { interface eth0 state MASTER virtual_router_id 51 priority 101 authentication { auth_type PASS auth_pass Add-Your-Password-Here } track_script { chk_http_port } virtual_ipaddress {202.54.1.1/29 dev eth1 }}
Save and close the file. Reload keealived:# /etc/init.d/keepalived restart
If nginx died due to any issues keepalived will release master VIP and backup server will become active. When master nginx LB0 comes backs online, the backup LB1 will go down in backup state.
本日志由 flyinweb 于 2011-12-09 09:34:42 发表到 WEB服务器 中,目前已经被浏览 318 次,评论 0 次;
作者添加了以下标签: KeepAlived,Nginx Failover,Nginx;
How do I configure nginx as failover reverse proxy load balancer in front of two Apache web servers under CentOS / RHEL 5.x?
nginx is a Web and Reverse proxy server. Nginx used in front of Apache Web servers. All connections coming from the Internet addressed to one of the Web servers are routed through the nginx proxy server, which may either deal with the request itself or pass the request wholly or partially to the main web servers.
本日志由 flyinweb 于 2011-12-09 09:29:16 发表到 WEB服务器 中,目前已经被浏览 272 次,评论 0 次;
作者添加了以下标签: Nginx,Reverse Proxy,Load Balancer;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
症状:
当NFS SERVER服务停止或者是NFS SERVER宕机,NFS Client 中一些涉及到挂载目录的命令可能会被挂起,如df、ls等。
解决办法:
可以使用mount -l列出挂载的目录,卸载掉已经停止NFS服务的目录
[root@test01 ~]# mount -l
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.146.250:/home/share on /mnt type nfs (rw,addr=192.168.146.250)
[root@test01 ~]# umount -l /mnt/ #卸载
[root@test01 ~]# mount -l
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
本日志由 flyinweb 于 2011-12-08 10:00:55 发表到 Linux 中,目前已经被浏览 328 次,评论 0 次;
作者添加了以下标签: NFS,NFS Client hangs;
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱
http://www.2mysite.net/scriptencoder/screnc.asp 站长你好,看
你好,我发现一个问题,就是从mysqld2同步过来的数据,在mysqld1的
晕,我说是怎么回事情,原来我和你一样,忘记设置了活动分区