随笔分类 -  nginx

配置nginx1.8支持thinkPHP3.2 pathinfo模式
摘要:nginx 下conf/nginx.conf 或者自己的vhosts更改以前的参数location/{root html;indexindex.htmlindex.htmindex.php;try_files$uri/index.php$uri;if(!-e$request_filename)... 阅读全文

posted @ 2016-01-24 15:56 studyphp 阅读(538) 评论(0) 推荐(0) 编辑

nginx域名转发 负载均衡 反向代理
摘要:公司有三台机器在机房,因为IP不够用,肯定要分出来,所以要建立单IP 多域名的反向代理,就是当请求www.abc.com 跳转到本机, 请求www.bbc.com 跳转到192.168.0.35 机器上去,前提 192.168.0.35 装了nginx和php环境。#vi /usr/local/ng... 阅读全文

posted @ 2015-12-21 12:50 studyphp 阅读(628) 评论(0) 推荐(0) 编辑

nginx指令中的优化(配置文件)
摘要:nginx指令中的优化(配置文件)worker_processes8; nginx进程数,建议按照cpu数目来指定,一般为它的倍数。worker_cpu_affinity0000000100000010000001000000100000010000001000000100000010000000... 阅读全文

posted @ 2015-12-21 12:40 studyphp 阅读(324) 评论(0) 推荐(0) 编辑

nginx 域名(虚拟)部署nodejs项目
摘要:首先说下我的情况,Windows+mongodb开发的简单nodejs 小博客系统,配置部署到centos7 nginx下,mongodb还是在我Windows机器下,1、Linux安装node.详细:http://www.cnblogs.com/already/p/4680394.html2、上传... 阅读全文

posted @ 2015-07-27 16:00 studyphp 阅读(1885) 评论(0) 推荐(0) 编辑

解决nginx下connect() to 127.0.0.1:3000 failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: 错误信息
摘要:Windows下简单开发了一个nodejs项目,用3000 端口,迁移到虚机centos服务器上时发现本地端口启动可以,但是nginx做域名转发时一直报错:connect() to 127.0.0.1:3000 failed (13: Permission denied) while connect... 阅读全文

posted @ 2015-07-27 15:24 studyphp 阅读(8244) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 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 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示