
nginx
文章平均质量分 54
sunhuwh
求学阶段
展开
-
vuecli3 & nginx配置刷新页面后页面404问题
nignx配置进行修改:根目录设置方式: location / { root html; index index.html index.htm; if (!-e $request_filename) { rewrite ^(.*)$ /index.html?s=$1 last; break; } }非目录设置方式:location /xxx/ { alias原创 2022-03-24 00:09:38 · 555 阅读 · 0 评论 -
安装篇:centos7安装nginx
1.先查看有没有安装gccgcc -v如果没安装就安装 yum install gcc-c++2、安装pcre和pcre-develPCRE(Perl Compatible Regular Expressions) 是一个Perl库,包括 perl 兼容的正则表达式库。nginx 的 http 模块使用 pcre 来解析正则表达式,pcre-devel 是使用 pcre 开发的一个二次开发库。yum install -y pcre pcre-devel3、安装zlib zlib提供了很原创 2020-08-05 10:15:30 · 261 阅读 · 0 评论 -
TCP反向代理
做了一个MQ,现在需要将MQ的TCP连接端口代理一番: 使用nginx:stream { upstream server { hash $remote_addr consistent; server localhost:1883 weight=1 max_fails=3 fail_timeout=10s; } server {原创 2017-11-13 23:10:16 · 1574 阅读 · 0 评论 -
nginx centos
https://blog.youkuaiyun.com/stinkstone/article/details/78082748转载 2019-07-29 15:09:42 · 96 阅读 · 0 评论