共 18 篇文章 |
|
nginx中健康检查(health.2014/12/29 13:43:13 [error] 6323#0: *4801368618 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.42.254, server: health.iflytek.com, request: "GET /response/ HTTP/1.1", upstream: "http://192.168.42.249:9191/response/"... 阅2232 转1 评0 公众公开 16-01-12 10:19 |
1、ngx_http_proxy_module 模块和ngx_http_upstream_module模块(自带) 官网地址:http://nginx.org/cn/docs/http/ngx_http_proxy_module.html#proxy_next_upstream2、nginx_upstream_check_module模块 官网网址:https://github.com/yaoweibin/nginx_upstream_check_module3、ngx_http_healthcheck_module模块 官网网址:http://wiki.nginx.o... 阅563 转1 评0 公众公开 16-01-12 10:07 |
centos下编译安装nginx,并增加nginx./bin/bash # #chkconfig: - 85 15 #description: Nginx is a World Wide Web server. #processname: nginx nginx=/usr/local/nginx/sbin/nginx conf=/usr/local/nginx/conf/nginx.conf case $1 in start) echo -n "Starting Nginx" $ng... 阅17 转0 评0 公众公开 16-01-11 23:09 |
阅84 转0 评0 公众公开 16-01-11 17:18 |
现在介绍另一个模块.进行后端 upstream 服务器的扩展监控的模块.默认 Nginx 并不能监控 http 的连接是否正常.所以需要使用这个模块来扩展.推荐的这个模块是基于原来的 healthcheck_nginx_upstreams 的设计思想的. 阅131 转0 评0 公众公开 16-01-11 17:16 |
四.利用CA证书进行签名openssl ca -in ../server.csr -out ../server.crt -cert ca.crt -keyfile ca.key openssl ca -in ../client.csr -out ../client.crt -cert ca.crt -keyfile ca.key 这两条执行的时候因为没有指定openssl.cnf 会报错,不过没关系,我们用默认的 /etc/pki/tls/openssl.cnf 就可以。 阅1548 转4 评0 公众公开 16-01-11 11:44 |
Nginx 使用 openssl 的自签名证书一、准备证书。生成 CA 根证书的公钥 ca.crt:openssl req -new -x509 -days 3650 -key ca.key -out ca.crt.openssl rsa -in abc.com.pem -out abc.com.key.openssl req -new -key abc.com.pem -out abc.com.csr.openssl ca -policy policy_anything -days 1460 -cert ./demoCA/ca.crt -keyfile ./demoCA/ca.ke... 阅170 转0 评0 公众公开 16-01-11 09:51 |
nginx的强大都是靠配置文件来实现,nginx就是一个二进制文件nginx读入一个配置文件nginx.conf(nginx.conf可能include包含若干子配置文件)来实现各种各样的功能。cp /usr/local/nginx/nginx.conf /usr/local/nginx/nginx.conf-20121224*.nginx.cn和.nginx.cn是等同的配置,设置该主机处理所有来自nginx.cn的子域名,比如www.nginx.cn,blog.ngin... 阅42 转0 评0 公众公开 15-12-30 17:16 |
centos 7 部署nginx 1.9.9一、准备工作安装必备工具。/bin/bash# chkconfig:235 85 15# description: Nginx is an HTTP server. /etc/rc.d/init.d/functionsstart() { echo "Start..." /usr/local/nginx/sbin/nginx &>/dev/null if [ $?then echo "Stopping..." fi}restart() { stop sleep 1 start}reload() { kill... 阅1434 转37 评1 公众公开 15-12-29 17:52 |
阅316 转3 评0 公众公开 15-12-29 16:20 |