-
使用Let’s Encrypt为nginx开启https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1147) 分类:破万卷书
一、首次生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ 二、域名认证 # ./letsencrypt-auto --debug certonly --webroot --email garany@qq.com -d ssl.junc.wang -w /var/www/wordpress/ 说明: --webroot 用web服务根目录方式认证 ./letsencrypt-auto --debug certonly --email you.email --webroot -w /var/www/example -d example.com -w /var/www/thing -d thing.net -d m.thing.net --apache web服务是apache的使...
-
nginx+tomcat实现redis会话共享
发布于:2016-11-28 作者:Garany 评论(0) 引用(0) 浏览(1231) 分类:破万卷书
规划: nginx 80 /etc/nginx tomcat01-1 8001 8081 /opt/tomcat01-1 tomcat01-2 9001 9091 /opt/tomcat01-1 redis 6379 1.安装nginx、tomcat7、JDK7、redis 详见: redis tomcat单机多实例 设置redis密码和绑定地址 # vim /etc/redis.conf requirepass 123456 bind 127.0.0.1 2.修改nginx配置文件 # vim /etc/nginx/nginx.conf user nginx; worker_processes 2; error_log /data/logs/nginx/error.log error; pid /var/run/nginx.pid; events { ...
-
使用zabbix监控nginx
发布于:2016-11-03 作者:Garany 评论(0) 引用(0) 浏览(1611) 分类:破万卷书
zabbix server 192.168.100.222 zabbix agentd 192.168.100.100 在zabbix agentd上,需要开启nginx的Stub Status模块。因为zabbix监控nginx是抓取Status数据。如果没开启,需要重新编译nginx的时候要加上参数 --with-http_stub_status_module,执行./configure && make就行。 zabbix agentd端 1.查看nginx是否加载了nginx的Stub Status模块 # /usr/local/nginx/sbin/nginx -V 2.在nginx的配置文件中,添加status配置 location /nginx-status { stub_...
最新微语
最新文章
链接
最新评论
- EdwardSoype 说:
十字路口,我们分着走。你走我的泪,... - 热搜 说:
文章还不错支持一下 - 头条 说:
文章非常好超喜欢 - 新闻头条 说:
文章非常好超喜欢 - 今日头条新闻 说:
文章还不错支持一下