awstats来来回回也装了好多遍了,每次都是现装现查,隐约的记得整个配置比较麻烦,中间有几个需要特别注意的地方,又记不得那些需要特殊对待,只能边找资料边回忆,最终还是搞出来了,在此分享给大家。首先去官网下载最新的安装包。wget http://jaist.dl.sourceforge.net/pr...
分类:
其他好文 时间:
2014-07-22 00:34:37
阅读次数:
305
前言:选择Nginx的优点:Nginx 可以在大多数 Unix like OS 上编译运行,并有 Windows 移植版。 Nginx 的1.4.0稳定版已经于2013年4月24日发布,一般情况下,对于新建站点,建议使用最新稳定版作为生产版本,已有站点的升级急迫性不高。Nginx 的源代码使用 2-clause BSD-like license。Nginx 是一个很强大的高性能Web和反向代理服务...
分类:
其他好文 时间:
2014-07-22 00:27:34
阅读次数:
334
从socket中读取数据可以使用如下的代码: while( (n = read(socketfd, buf, BUFSIZE) ) >0) if( write(STDOUT_FILENO, buf, n) = n) { printf(“write error”); exit(1); }当代码中的so...
分类:
其他好文 时间:
2014-07-22 00:26:33
阅读次数:
267
weblogic,就是用于java开发的web服务器。tomcat熟悉吧,跟tomcat一个作用,是比tomcat更具优势的web服务器。安装:(转载)1.提供安装文件网盘下载:链接处2.安装过程不在详述了,可自行修改安装地址,各种“下一步”,完成安装。Weblogic创建域安装完成后,【开始菜单】...
分类:
Web程序 时间:
2014-07-22 00:09:36
阅读次数:
413
一、通过pip工具安装
https://pypi.python.org/pypi/pip#downloads
cd /opt/
tar xzvf pip-1.5.6.tar.gz
cd /opt/pip-1.5.6
python setup.py install
pip install ngxtop
ngxtop -c /usr/local/nginx/conf/nginx.co...
分类:
其他好文 时间:
2014-07-21 23:28:11
阅读次数:
258
HTTP Status 500 -typeException reportmessagedescriptionThe server encountered an internal error () that prevented it from fulfilling this request.exce...
分类:
Web程序 时间:
2014-07-21 14:31:06
阅读次数:
254
简约不简单的ngx_strlow() 函数,不错的形参设计方式。 1.如果本人设计ngx_strlow()函数会怎么写? 2.ngx_strlow函数形参相比本人的 写法有什么优势? A1.本人写法如下 #define?my_tolower(c)?(char)(((c)?>=?...
分类:
其他好文 时间:
2014-07-21 13:28:20
阅读次数:
206
快速理解分布式集群中的负载均衡之HTTP反向代理...
分类:
其他好文 时间:
2014-07-21 13:12:37
阅读次数:
139
之前介绍了使用ansibleplaybok安装zabbix客户端、mysql服务端、nginx,现在介绍一下安装lnmp环境。下面是安装nginx的信息:nginx_user:wwwnginx用户
nginx_port:80nginx监听端口
nginx_web_dir:/data/webroot/nginxnginx的目录
nginx_version:1.4.3nginx的版本
pcre_version:8...
分类:
其他好文 时间:
2014-07-21 12:18:35
阅读次数:
403
apache-tomcat的配置
首先下载软件包
apache-tomcat-6.0.33.tar.gz tomcat-connectors-1.2.32-src.tar.gz
httpd-2.2.17.tar.gz jdk-6u25-linux-i586-rpm.bin
1.安装JDK
chmod +x jdk-6u25-linux-i586.bin
./j...
分类:
系统相关 时间:
2014-07-21 11:24:44
阅读次数:
317