冴羽 冴羽
4年前
一份简单够用的 Nginx Location 配置讲解
前言Location是Nginx中一个非常核心的配置,这篇重点讲解一下Location的配置问题以及一些注意事项。语法关于Location,举个简单的配置例子:nginxhttpserverlisten80;servernamewww.yayujs.com;location/roo
Mybatis源码解析之执行SQL语句
作者:郑志杰mybatis操作数据库的过程//第一步:读取mybatisconfig.xml配置文件InputStreaminputStreamResources.getResourceAsStream("mybatisconfig.xml");//第二步
Stella981 Stella981
4年前
Spring Cloud Gateway 数据库存储路由信息的扩展方案
动态路由背景​无论你在使用Zuul还是SpringCloudGateway的时候,官方文档提供的方案总是基于配置文件配置的方式例如:zuul的配置形式routes:pigauth:path:/auth/serviceId:
Wesley13 Wesley13
4年前
Ubuntu18开启redis服务自启动
设置redis服务开机自启动。1.创建配置文件夹sudomkdir/etc/redissudocp/usr/local/redis/redis.conf/etc/redissudocp/etc/redis/redis.conf/etc/redis/6379.conf2.
Stella981 Stella981
4年前
Nginx 提示host not found in upstream 错误解决方法
NginxDNSresolver配置实例,本文讲解在proxy\_pass和upstreamserver通信的时候需要手动指定resolver,本文就给出了配置实例.nginx通过proxy\_pass和upstreamserver通信的时候需要手动指定resolver。某些时候DNS解析失败就会出现这个错
Wesley13 Wesley13
4年前
MySQL安装
1\.配置文件my.ini    在安装目录下创建my.ini文件,配置以下内容\mysql\defaultcharactersetutf8\mysqld\basedirD:\\DevProgram\\MySQL\\mysql5.7.18winx64datadirD:\\DevProgram\\MyS
Stella981 Stella981
4年前
Spring 使用注解方式进行事务管理
使用步骤:步骤一、在spring配置文件中引入<tx:命名空间<beansxmlns"http://www.springframework.org/schema/beans" xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance" xmlns:tx"http
Stella981 Stella981
4年前
Nginx配置自定义502页面
公司项目需要维护,没有502页面,每次访问直接是nginx默认的502。贴代码看下错误拦截是否开启 fastcgi\_intercept\_errorson;如果开启,进行下一步操作   error\_page 404500502503504 /502.html;  location/502.html{
Stella981 Stella981
4年前
Linux基础(day42)
11.14/11.15Apache和PHP结合配置httpd支持php目录概要httpd主配置文件/usr/local/apache2.4/conf/httpd.confvim/usr/local/apache2.4/conf/httpd.con
Stella981 Stella981
4年前
Go语言Web开发项目Nging2.0.0版发布
Nging!Nging'slogo(https://github.com/admpub/nging/blob/master/public/assets/images/nginggear.png?rawtrue)Nging是一个网站服务程序,可以代替Nginx或Apache来搭建Web开发测试环境,并附带了实用的周边工具,例如:计