一般情况下,Tomcat都只是作为请求处理器而处在web服务器例如Apache,ngnix之后的,但是对于小型的应用用让Tomcat作为前端服务器也无妨。这里对Tomcat的一些配置最一下总结。NIO模式下的SSL配置:步骤1建立keysore:%JAVA_HOME%\bin\keytool-genkey-aliastomcat-keyalgRSA如果是..
分类:
其他好文 时间:
2014-08-26 03:05:05
阅读次数:
271
下载源码:wgethttp://nginx.org/download/nginx-1.6.1.tar.gz解压,编译安装./configure./configure:error:theHTTPrewritemodulerequiresthePCRElibrary.Youcaneitherdisablethemodulebyusing--without-http_rewrite_moduleoption,orinstallthePCRElibraryintothesystem,orbui..
分类:
其他好文 时间:
2014-08-14 20:59:19
阅读次数:
388
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218
nginx的安装下载地址:http://nginx.org/download/nginx-1.4.2.tar.gz安装准备:nginx依赖于pcre库,要先安装pcreyuminstallpcrepcre-develcd/usr/local/src/wgethttp://nginx.org/download/nginx-1.4.2.tar.gztarzxvfnginx-1.4.2.tar.gzcdnginx-1.4.2./configure--prefix=/usr/lo..
分类:
其他好文 时间:
2014-07-09 09:04:41
阅读次数:
199
要点:ldd 可以读取每个可以运行的程序依赖的 so 文件。 编译的时候提示需要Openssl库. 查看本机,已经安装了openssl 查看编译报错文件,查找Openssl所依赖的库 more objs/autoconf.err 查看openssl所依赖的库文件 ldd /usr/bin/opens...
分类:
其他好文 时间:
2014-07-03 19:16:43
阅读次数:
291
1、vim /usr/local/nginx/conf/wordpress.conf2、rewrite
/wp-admin$ $scheme://$host$uri/ permanent;3、ngnix -s reload
分类:
其他好文 时间:
2014-06-13 07:35:35
阅读次数:
234