—— 阿尔伯特·爱因斯坦

程序员の奇妙冒险

当前标签:Nginx(16 篇文章)

Nginx 部署axure web

axure 导出 html页面,需要部署到内网通过Nginx转发访问 如果访问出现403 检查目录nginx是否有权限访问

15800

Nginx代理Proxy Pass转发去除前缀

们需要根据url的前缀转发到不同的服务 比如: abc.com/user/profile.html转发到 用户服务localhost:8089/profile.html abc.com/order/details.html转发到 订单服务 localhost:8090/details.html 即,

20300

Nginx GeoIP2模块

需要下载 geoip.dat ip库 下载地址https://dolphincn.github.io/images/nginx/geoip/geoip.dat.gz 下载后解压得到geoip.dat文件

8800

Nginx性能优化之配置缓冲、超时、压缩和日志

Nginx的缓冲配置 请求缓冲在Nginx请求处理中扮演了重要的角色。当收到一条请求时,Nginx将请求写入缓冲当中。缓冲中的数据成为Nginx的变量,比如$requestbody。如果缓冲容量比请求容量小,那么多出来的请求会被写入硬盘,这时便会有I/O操作。Nginx提供了多个directive来

20900

Nginx整合fastdfs问题汇总

一、问题汇总 1、Nginx启动只有master进程而没有worker进程 2、Nginx启动有两个master进程而没有worker进程 3、Nginx启动报: …/storage/trunkmgr/trunkshared.c, line: 194"Permission denied" 4、Ngi

12800

Nginx 配置文件服务器

server { listen 8089;#端口号 servername dis;#本机 charset utf-8; #accesslog logs/host.access.log main; location ~ .\.(gif jpg jpeg png js)$ { expires 24h;

5600

Nginx常用命令

nginx命令一般有: 启动:start nginx 关闭:nginx -s stop 重启:nginx -s reload 查看Nginx的版本号:nginx -V 校验文件格式是否正确:nginx –t 配置文件修改重装载命令:nginx -s reload linux 重启:./nginx -

5800

nginx使用upstream做负载均衡

打开nginx.conf,在http节点里添加: 在hosts中添加: 然后访问 http://dis/ 会轮询访问 127.0.0.1:8888和127.0.0.1:8080 hosts在Windows下所在位置 C:\Windows\System32\drivers\etc 为了不破坏 ngin

7300