上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页
摘要: 每5分钟检查一次,如果不在线就重启 #!/bin/bash count=`ps axu | grep kafka_2.11-1.0.0|grep -v grep|wc -l` echo "process count => "$count if [ "$count" != 0 ];then echo 阅读全文
posted @ 2021-03-02 17:16 VipSoft 阅读(128) 评论(0) 推荐(0)
摘要: 断点续传(上传)Java版 1. 客户每次上传前先获取一下当前文件已经被服务器接受了多少 2. 上传时设定偏移量 服务端代码如下: /// <summary> /// 断点续传,获取已上传文件大小 /// </summary> /// <returns></returns> [HttpPost] p 阅读全文
posted @ 2021-02-20 09:36 VipSoft 阅读(359) 评论(0) 推荐(0)
摘要: 注意: CompressionLevel 选择 阅读全文
posted @ 2021-01-25 20:11 VipSoft 阅读(191) 评论(0) 推荐(0)
摘要: 查询所有表 select * from information_schema.tables SQL SERVER 查询表结构,导出到Excel 生成代码用 --快速查看表结构字段(比较全面的) SELECT col.colorder AS 序号 ,CASE WHEN col.colorder = 1 阅读全文
posted @ 2021-01-25 14:28 VipSoft 阅读(2242) 评论(0) 推荐(0)
摘要: 放行FTP服务器 TCP 21端口及FTP服务器被动1024/65535端口 阅读全文
posted @ 2021-01-25 14:23 VipSoft 阅读(202) 评论(0) 推荐(0)
摘要: test下的包名和java下的包名不一致会产生下面错误 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @Spri 阅读全文
posted @ 2021-01-18 20:00 VipSoft 阅读(224) 评论(0) 推荐(0)
摘要: [2021-01-15 13:20:14.623] ERROR [Druid-ConnectionPool-Create-497208183] DruidDataSource.java:2471 - create connection SQLException, url: jdbc:sqlserve 阅读全文
posted @ 2021-01-15 13:25 VipSoft 阅读(1317) 评论(0) 推荐(0)
摘要: application.yml data: mongodb: uri: mongodb://127.0.0.1:27017,127.0.0.1:27018,127.0.0.1:27019/fecg_dev?slaveOk=true&replicaSet=rs0&write=1&readPrefere 阅读全文
posted @ 2020-12-22 17:02 VipSoft 阅读(953) 评论(2) 推荐(0)
摘要: 本文基于:MongoDB 读写分离——MongoDB 安装 参考:https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/ Master-Slave 主从复制 实现数据同步只需要在某一台服务器启动时加上"-mas 阅读全文
posted @ 2020-12-22 15:56 VipSoft 阅读(455) 评论(0) 推荐(0)
摘要: 下载安装包:https://www.mongodb.com/try/download/community 同一台电脑装了两服务,所以下载zip包,单机服务 mis 安装方便些 解压并重命名. 4.2 是版本 .27017 是端口号 Server下面建两目录 data、log 分别用来存放 数据文件和 阅读全文
posted @ 2020-12-22 13:31 VipSoft 阅读(140) 评论(0) 推荐(0)
摘要: 情况如下 db.currentOp() 发现有全表扫描 将 Collscan 对应的 Collection 建索引 db.Table1.createIndex({"DataTime":1}) db.Table1.getIndexes() 阅读全文
posted @ 2020-12-18 09:34 VipSoft 阅读(794) 评论(0) 推荐(0)
摘要: 不同的版本配置项可能不同:本文使用的 mongodb-win32-x86_64-2012plus-4.2.11-signed.msi mongod.cfg 默认占用内存为 0.5*(物理内存-1)如内存8G => 0.5*(8-1)=> 3.5G # mongod.conf # for docume 阅读全文
posted @ 2020-12-17 10:14 VipSoft 阅读(376) 评论(0) 推荐(0)
摘要: 获取SVN代码 保存并提交 创建分支 主干合到分支 修改分支内容 分支合并到主干 先提交主干代码到服务器,防止合并时冲突,破坏了代码内容 用 Test merge 可以看看是否有冲突, 也可以直接打开文件编辑 及时将主干合到分支上 阅读全文
posted @ 2020-12-16 11:18 VipSoft 阅读(301) 评论(0) 推荐(0)
摘要: 先到 https://www.u.tools/ 下载 uTools ,里面有好多插件, 下载安装后,打开uTools工具,搜索“内网穿透” 直接支持https,对于有https要求的,非常方便 点右边的图标,或者直接搜索 安装好后,到已安装里选择打开 阅读全文
posted @ 2020-12-10 09:10 VipSoft 阅读(199) 评论(0) 推荐(0)
摘要: 解决 C# Winform 自定义窗口,最大化遮住任务栏 的问题,可以通过获取屏幕大小来控制最大值,来实现,代码如下 Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this); this.MaximumSize = 阅读全文
posted @ 2020-12-08 11:07 VipSoft 阅读(872) 评论(1) 推荐(0)
摘要: 忘了 iOS(iPad、IPhone) 设备上的「屏幕使用时间」密码怎么办? 1. 用iTunes 进行备份【备份时一定要输入密码】 备份时C盘要有足够的空间 2. 下载 pinfinder.exe 文件 https://github.com/gwatts/pinfinder/releases/do 阅读全文
posted @ 2020-11-08 21:26 VipSoft 阅读(2515) 评论(0) 推荐(0)
摘要: select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' declare @spid 阅读全文
posted @ 2020-10-29 08:49 VipSoft 阅读(302) 评论(0) 推荐(0)
摘要: Winform 嵌入html,数据交互,将JS中的数据等传给winform 点击浏览器中的按钮,触发 Winform 中的方法 https://github.com/cefsharp/CefSharp C# Code namespace SharpBrowser { public partial c 阅读全文
posted @ 2020-10-22 10:17 VipSoft 阅读(3540) 评论(2) 推荐(0)
摘要: 通过 itextpdf 的 HtmlConverter.convertToPdf(); 方法生成的pdf 有点让人失望,CSS啥的不起作用了,(有可能我用得不对) 后来用 wkhtmltopdf.exe 做了 网页生成PDF 效果还可以,下面是JAVA代码,C#的差不多 public static 阅读全文
posted @ 2020-10-21 08:48 VipSoft 阅读(762) 评论(0) 推荐(0)
摘要: 总结:FTP 21端口,可以主动连接,防火墙配置一下21端口放行就OK了。非21端口,需要设成被动连接和端口范围。防火墙要做相应的配置 原理 https://www.cnblogs.com/zjoch/p/4837287.html 服务器端配置,编辑-> 设置 客户端 FlashFxp 设置 C# 阅读全文
posted @ 2020-10-10 17:48 VipSoft 阅读(2130) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页