制作简单的安装包的时候可以简单的用cat命令连接两个文件,
然后头部是脚本文件,执行的时候把下面的文件分解出来就行了。
一般这个后部分的文件是个压缩包,那样,就能够打包很多文件了,在脚本中解压出来即可。
这就是Linux那些bin啊run啊等安装脚本的简单制作了。

本日志由 flyinweb 于 2011-12-20 23:25:03 发表到 Linux 中,目前已经被浏览 272 次,评论 0 次;

作者添加了以下标签: bin安装包

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

一、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

本日志由 flyinweb 于 2011-12-09 11:59:25 发表到 技术文摘 中,目前已经被浏览 215 次,评论 0 次;

作者添加了以下标签: http_loadwebbenchabSiegeWeb服务器性能/压力测试工具

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

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:

  • Easy of use : Nginx is easy to setup and upgrade.
  • Security : Nginx provide an additional layer of defense as Apache is behind the proxy. It can protect against common web-based attacks too.
  • Load Distribution : nginx use very little memory and can distribute the load to several Apache servers. It can even rewrite urls on fly.
  • Caching : Nginx act as a reverse proxy which offload the Web servers by caching static content, such as images, css, js, static html pages and much more.
  • Compression : Nginx can optimize and compress the content to speed up the load time.
  • 本日志由 flyinweb 于 2011-12-09 09:38:39 发表到 WEB服务器 中,目前已经被浏览 264 次,评论 0 次;

    作者添加了以下标签: NginxSSL Reverse ProxyLoad 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 次;

    作者添加了以下标签: NginxkeepalivedIP 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 次;

    作者添加了以下标签: KeepAlivedNginx FailoverNginx

    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 次;

    作者添加了以下标签: NginxReverse ProxyLoad 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 次;

    作者添加了以下标签: NFSNFS Client hangs

    7323/92