- 博客(4)
- 收藏
- 关注
原创 windows nginx开机自启
分享至阿里云盘可直接下载,根据对应系统下载所需版本(如果x64和x86失败,可试试NET4,建议window 2008和window 2012 r2使用NET4版本)1、下载window service wraper(https://github.com/winsw/winsw/releases)5.点击下一步,程序或脚本选择nginx.exe所在目录,要把下面的起始于 处填上 nginx.exe的所在路径 点击下一步。2、将安装包放到nginx目录下面,自定义重命名(nginx-serive.exe)
2024-01-17 10:45:24
3394
原创 windows redis 后台启动
window redis 后台启动方法下载Github下载地址:https://github.com/MicrosoftArchive/redis/releases解压安装服务进入到redis解压目录下,在目录栏上输入cmd回车输入指令:redis-server --service-install redis.windows-service.conf --loglevel verbose常用命令启动命令: redis-server --service-start
2022-03-15 13:47:03
5011
原创 记录Springboot更改static路径后404
**记录Springboot更改static路径后404或更改static名称后404**springboot默认打包文件夹是static,当我有多个环境的static打包时每次都要切换,可以在对应的配置文件里面指定打包的前端文件夹application.properties配置spring.resources.static-locations=classpath:/single-static/注:如果前端index.html在文件夹下面需要加/application.yml配置r
2022-03-09 10:46:28
786
原创 记录Netty LengthFieldBasedFrameDecoder解决TCP粘包与拆包的用法详解
前言LengthFieldBasedFrameDecoder类是Netty提供的用来解析带长度字段数据包的类,继承自ByteToMessageDecoder类。一,粘包与拆包问题经典的粘包拆包问题在Netty的官网文档中已经有很详细的解释,这里我直接复制过来:In a stream-based transport such as TCP/IP, received data is stored into a socket receive buffer. Unfortunately, the buffe
2022-02-25 17:38:00
1100
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人