随笔分类 -  Nginx

摘要:Wrong JPEG library version: library is 70, caller expects 62Wrong JPEG library version: library is 62, caller expects 70Wrong JPEG library version: library is 70, caller expects 80JPEG版本冲突,其它删除只保留其中的一个版本,重新编译安装GM 阅读全文
posted @ 2012-10-24 12:19 eprsoft 阅读(1302) 评论(0) 推荐(0)
摘要:安装pcre库tar zxvf pcre-8.31.tar.gzcd pcre-8.31/./configuremakemake install安装GraphicsMagick./configure --prefix=/usr/local/gmagick --without-prel --enable-shared --disable-openmp makemake install安装nginxtar zxvf nginx-0.8.46.tar.gzcd nginx-0.8.46/./configure --prefix=/usr/local/nginx --with-ld-opt=" 阅读全文
posted @ 2012-10-22 13:09 eprsoft 阅读(662) 评论(0) 推荐(0)
摘要:本文主要根据http://www.rocknoon.com/ubuntu-lnmp-mysql/及张宴的《实战nginx:取代Apache的高性能web服务器》 and 下面在安装时configure后面的参数请手动将–改成- -首先下载所需要的软件wget http://nginx.org/download/nginx-1.0.10.tar.gz(ps:原来的版本是0.8.46,好几年前的一个版本,我在后面编译安装的时候出现了src/core/ngx_resolver.c: In function ‘ngx_resolver_process_ptr’:src/core/ngx_resolve 阅读全文
posted @ 2012-10-22 09:16 eprsoft 阅读(463) 评论(0) 推荐(0)
摘要:VMware虚拟机上配置nginx后,本机无法访问问题今天忙了一天,刚把nginx装在CentOS上,出现了好多问题,快大功告成了,用本机访问虚拟机的时候却出现了不能访问的问题,查了资料以后,原来是防火墙的问题。具体情况如下:防火墙可以ping通虚拟机,虚拟机也可以ping通防火墙。接着检查了服务器端的80端口是否可以访问的到:telnet192.168.131.13080,结果访问不到,原来果真防火墙的问题。做如下处理:#/sbin/iptables-IINPUT-ptcp--dport80-jACCEPT然后保存:#/etc/rc.d/init.d/iptablessave重启防火墙:#/ 阅读全文
posted @ 2012-10-22 09:12 eprsoft 阅读(261) 评论(0) 推荐(0)
摘要:exportLUAJIT_LIB=/usr/local/luajit/libexportLUAJIT_INC=/usr/local/luajit/include/luajit-2.0./configure--prefix=/application/nginx--with-ld-opt="-Wl,-rpath,$LUAJIT_LIB"--add-module=/usr/local/ngx_devel_kit--add-module/ngx_echo_module--with-debugmake-j2makeinstallhttp://ntcn.net/blog/?p=4766 阅读全文
posted @ 2012-10-22 09:10 eprsoft 阅读(308) 评论(0) 推荐(0)
摘要:为了提高性能,几乎所有互联网应用都有缓存机制,其中Memcache是使用非常广泛的一个分布式缓存系统。众所周知,LAMP是非常经典的Web架构方式,但是随着Nginx的成熟,越来越多的系统开始转型为LNMP(Linux+Nginx+MySQL+PHP with fpm),这是因为Nginx采用基于事件机制的I/O多路复用思想设计,在高并发情况下其性能远远优于默认采用prefork模式的Apache,另外,相对于Apache,Nginx更轻量,同时拥有大量优秀的扩展模块,使得在Nginx上可以实现一些美妙的功能。传统上,PHP中使用memcache的方法是使用php-memcache或php-m 阅读全文
posted @ 2012-10-22 09:05 eprsoft 阅读(308) 评论(0) 推荐(0)