随笔分类 -  nginx

摘要:1、官网下载安装包 http://nginx.org/en/download.html 选择适合Linux的版本,这里选择最新的版本,下载到本地后上传到服务器或者centos下直接wget命令下载。 切换到/usr/local目录,下载软件包 cd /usr/local wget http://ng 阅读全文
posted @ 2021-06-04 15:08 itwetouch 阅读(292) 评论(0) 推荐(0) 编辑
摘要:#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev 阅读全文
posted @ 2021-06-04 15:07 itwetouch 阅读(356) 评论(0) 推荐(0) 编辑
摘要:Docker-compose部署nginx 目录结构 . | -- conf.d | | -- nginx.conf | -- dist | | -- index.html | | -- 50x.html | -- compose-nginx.yaml | -- startup.sh compose 阅读全文
posted @ 2020-07-14 19:07 itwetouch 阅读(10278) 评论(0) 推荐(0) 编辑
摘要:参考文章:https://www.cnblogs.com/lave/p/10477375.html 概念介绍 负载均衡建立在现有网络结构之上,提供了一种廉价有效透明的方法扩展网络设备和服务器的带宽,增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性。 配置修改 修改nginx配置文件( /e 阅读全文
posted @ 2020-07-13 10:20 itwetouch 阅读(2187) 评论(0) 推荐(0) 编辑
摘要:前端页面刷新404 vue单页因微信分享和自动登录需要,对于URL中存在’#’的地址,处理起来比较坑。用history模式就不会存在这样的问题。但是换成history模式,就会有个新的问题,就是页面刷新后,页面就无法显示了(404)。对于这个问题,我们只需要在服务器配置如果URL匹配不到任何静态资源 阅读全文
posted @ 2020-01-09 11:35 itwetouch 阅读(287) 评论(0) 推荐(0) 编辑

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