Solr是一个企业级搜索服务器,对外提供Web-Service接口,用户可以通过http请求,向搜索引擎提交xml或者json格式的数据,生成索引;然后可以通过http get请求查找,获取返回的xml或者json等多种格式的数据。 (更多…)
沸点大火-blog
人生杂烩
jenkins配置权限不对导致无法登陆或者空白页面解决办法
找到.jenkins/config.xml文件:
替换为:
1、<authorizationStrategy class=”hudson.security.AuthorizationStrategy$Unsecured”/>
这个权限对应“任何用户可以做任何事(没有任何限制)”
2、<authorizationStrategy class=”hudson.security.FullControlOnceLoggedInA
这个权限对应“登录用户可以做任何事”
3、<authorizationStrategy class=”hudson.security.GlobalMatrixAuthorizatio
这个权限对应 test用户可以是管理员、打标签权限。 (更多…)
Nginx配置性能优化
基本的 (优化过的)配置
我们将修改的唯一文件是nginx.conf,其中包含Nginx不同模块的所有设置。你应该能够在服务器的/etc/nginx目录中找到nginx.conf。首先,我们将谈论一些全局设置,然后按文件中的模块挨个来,谈一下哪些设置能够让你在大量客户端访问时拥有良好的性能,为什么它们会提高性能。本文的结尾有一个完整的配置文件。
高层的配置
nginx.conf文件中,Nginx中有少数的几个高级配置在模块部分之上。
- user www-data;
- pid /var/run/nginx.pid;
- worker_processes auto;
- worker_rlimit_nofile 100000;
Nginx同时反向代理http和https
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
proxy_cache_path /data/nginx/cache/one levels=1:2 keys_zone=one:10m max_size=10g;proxy_cache_key "$host$request_uri";server {listen 80;server_name www.fedora.hk fedora.hk;rewrite ^(.*) https://www.fedora.hk$1 permanent;} upstream google { server 173.194.127.144:80 max_fails=3; server 173.194.127.147:80 max_fails=3; server 173.194.127.148:80 max_fails=3; server 173.194.127.145:80 max_fails=3; server 173.194.127.146:80 max_fails=3; }server { listen 443; server_name www.fedora.hk fedora.hk; ssl on; ssl_certificate /usr/local/nginx/conf/fedora.crt; ssl_certificate_key /usr/local/nginx/conf/fedora.key;location / { proxy_cache one; proxy_cache_valid 200 302 1h; proxy_cache_valid 404 1m; proxy_redirect https://www.google.com/ /; proxy_cookie_domain google.com fedora.hk; proxy_pass http://google; proxy_set_header Host "www.google.com"; proxy_set_header Accept-Encoding ""; proxy_set_header User-Agent $http_user_agent; proxy_set_header Accept-Language "zh-CN"; proxy_set_header Cookie "PREF=ID=047808f19f6de346:U=0f62f33dd8549d11:FF=2:LD=zh-CN:NW=1:TM=1325338577:LM=1332142444:GM=1:SG=2:S=rE0SyJh2w1IQ-Maw"; sub_filter www.google.com www.fedora.hk; sub_filter_once off;}} |