本站搜索


技术服务

为了确保本博客正常运作,并且方便帮补生计,特为广大有需要者,提供以下服务:网站建设,网站维护,网络搭建,网站服务器管理与维护,网络应用服务建设。网络安全维护,网站数据库建设,维护,备份,恢复,数据恢复,网站开发,软件定制与开发,网络安全产品销售,IBM WebSphere中间件软件销售。价钱面议与网议。联系方式:MSN:zymh_zy@hotmail.com evan_zy@hotmail.com QQ:3819468 438549233 1421298188 gtalk:evan_zy@gtalk.com 电话:13640892033 13119595395

最近评论

    非常好的lighttpd 安装配置说明文档

    一,为什么要使用lighttpd?
    apache不可以吗?
    在支持纯静态的对象时,比如图片,文件等 ,
    lighttpd速度更快,更理想
    至于它和apache的比较,很多文档,大家可以google一下

    二,从何处下载lighttpd?

    http://www.lighttpd.net/download/

    这个是它的官方站

    三,如何安装?
    1,编译安装
    ./configure –prefix=/usr/local/lighttpd
    make
    make install

    configure完毕以后,会给出一个激活的模块和没有激活模块的清单,可以检查一下,是否自己需要的模块都已经激活,在enable的模块中一定要有“mod_rewrite”这一项,否则重新检查pcre是否安装。

    2,编译后配置
    [...]

    Nginx配置文件中文注释详解

    Nginx配置文件详解
    nginx配置说明—————————-
    #运行用户
    user nobody nobody;
    #启动进程
    worker_processes 2;
    #全局错误日志及PID文件
    error_log logs/error.log notice;
    pid logs/nginx.pid;
    #工作模式及连接数上限
    events {
    use epoll;
    worker_connections 1024;
    }
    #设定http服务器,利用它的反向代理功能提供负载均衡支持
    http {
    #设定mime类型
    include conf/mime.types;
    default_type application/octet-stream;
    #设定日志格式
    log_format main ‘$remote_addr – $remote_user [$time_local] ‘
    ‘”$request” $status $bytes_sent ‘
    ‘”$http_referer” “$http_user_agent” [...]

    网站恢复时,Lighttpd+php环境搭建文档笔记

    早前。网站要迁移。要从apache+php环境迁移到Lighttpd +php环境,如下为lighttpd+php环境搭建文档笔记。有点乱。有空再详细整理。

    fetch ftp://ftp.freebsd.org/pub/FreeBS … Latest/lighttpd.tgz
    tar -zxvf lighttpd.tgz
    cd lighttpd
    ./configure –prefix=/home/tiger/evan/lighttpd –with-pcre –with-gdbm –with-memcache make
    make install
    安装PHP
    tar -zxvf php-5.0.4.tgz
    cd php-5.0.4
    ./configure –prefix=/home/tiger/evan/php5-fastcgi –enable-fastcgi –without-pear –with-mysql=/usr/local/mysql –enable-discard-path –enable-force-cgi-redirect -with-iconv
    ./configure –prefix=/home/tiger/evan/php5-fastcgi –with-mysql=/usr/local/mysql –enable-gd-native-ttf –with-gd –enable-ftp –with-iconv –with-gettext –enable-fastcgi –enable-zend-multibyte –without-pear –enable-force-cgi-redirect –enable-discard-path
    Make
    Make test
    Make clean
    Make install

    配置Lighttpd
    vi lighttpd.confserver.port=5678
    server.modules=(“mod_access”,”mod_fastcgi”,”mod_accesslog”)
    server.document-root=”/home/tiger/evan/lighttpd/htdocs”
    server.pid-file=”/home/tiger/evan//lighttpd/lighttpd.pid”
    server.errorlog=”/home/tiger/evan//lighttpd/lighttpd.error.log”
    server.indexfiles=(“index.php”,”index.html”)
    fastcgi.server=(“.php”=>(“localhost”=>(“socket” =>”/tmp/php-fastcgi.socket”,”bin-path”
    =>”/home/tiger/evan/php5-fastcgi/bin/php”)))

    启动Lighttpd
    /home/tiger/evan/lighttpd/sbin/lighttpd -f /home/tiger/evan/lighttpd/conf/lighttpd.conf

    nginx在openBSD下跑反向代理负载均衡

    1,本文的实验环境:
    当时做完了OpenBSD+Nginx+php+mysql的实验,直接将该虚拟机克隆两份。如果对下文中的“二号机、三号机”配置有兴趣的可以看看那个帖
    一号机,(192.168.118.135)将旧的和mysql/php有关系的nginx.conf干掉,重写nginx.conf。也就是说不启用php/mysql,只用本机的nginx做反向代理。
    二号机,(192.168.118.136)保持着原有的架构,并在/var/nginx/html下面新建一个index.php页面,页面内容自定啦,但必须和下面的三号机有所区别。
    三号机,(192.168.118.137)保持着原有的架构,并在/var/nginx/html下面新建一个index.php页面,页面内容自定啦,但必须和上面的二号机有所区别。
    四号机,(192.168.118.132)以前做实验用过的一个redhat5的机器,是一个tomcat服务器,只装了jdk和tomcat并设置了环境变量。
    客户机,本机是winxp,也是上面四个试验机的宿主机,改过了本机的hosts文件。C:\WINDOWS\system32\drivers\etc\hosts ,这个文件没后缀名,但可以用写字板或记事本打开。加入如下内容:
    [...]

    Page 1 of 3123