Easter79 Easter79
3年前
ssh+scp基本使用
1sshssh一般用于连接服务器,可以使用密码认证与密钥认证的方式。1.1密码认证直接使用ssh即可:sshusername@xxx.xxx.xxx.xxxusername为用户名,后面为公网ip.若需要使用特定端口登录,加上p参数,比如使用12345端口:sshp
Easter79 Easter79
3年前
springboot+线程池使用
关于线程和线程池的学习,我们可以从以下几个方面入手:第一,什么是线程,线程和进程的区别是什么第二,线程中的基本概念,线程的生命周期第三,单线程和多线程第四,线程池的原理解析第五,常见的几种线程池的特点以及各自的应用场景一、什么是线程线程,程序执
Bill78 Bill78
4年前
python的round函数使用
碰到的问题:对float进行精确两位显示出来。解决的方法:round(3.32342,2)3.32.round函数概念:英文:圆,四舍五入是python内置函数,它在哪都能用,对数字取四舍五入。round(number\,ndigits\)round对传入的数据进行四舍五入,如果ngi
Easter79 Easter79
3年前
SpringFramework之RequestBodyAdvice的使用
  Spring版本5.1.4.release.  前一篇(https://my.oschina.net/u/2518341/blog/4329778)讲了RequestBodyAdvice的实现  有人用RequestBodyAdvice来做参数的解密(前端传过来的是加密的),或者使用RequestBodyAdvice进行全局统一返
Stella981 Stella981
3年前
Intellij IDEA中使用MyBatis
1、IDEA创建maven工程(略)2、在maven项目的pom.xml添加mybatisgeneratormavenplugin插件和MySQL数据库驱动依赖<build <plugins  <plugin   <groupIdorg.mybatis.generato
Stella981 Stella981
3年前
Go使用Gob存储数据
Go使用Gob存储数据使用Gob可以非常方便的存储数据以及传输数据.先来个例子.直接使用官方的.序列化一个结构体.packagemainimport(    "bytes"    "encoding/gob"    "fmt"    "log")typePstruct{
Stella981 Stella981
3年前
GitHub学习使用笔记
一、界面!(https://static.oschina.net/uploads/space/2017/0331/105607_sMsr_3184390.png)二、下载版本管理工具GitHubDesktop(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flink.z
Stella981 Stella981
3年前
DGA聚类 使用DBScan
featuressc.parallelize(data\_group\idx\).map(lambdax:(x.host\_ip'^'x.domain,1)).reduceByKey(operator.add).map(get\_domain\_features)defget\_domain\_features(x):   
Easter79 Easter79
3年前
SpringBoot2.0使用health
1,引入actuator<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarteractuator</artifactId</dependency2,application.prop
芝士年糕 芝士年糕
2年前
使用nginx进行负载均衡
我租了三台3A的服务器,使用的时候刚好用到了负载均衡,顺便分享给你们,如果有需要服务器或者哪里不懂的,可以私信我1.nginx负载均衡介绍nginx应用场景之一就是负载均衡。在访问量较多的时候,可以通过负载均衡,将多个请求分摊到多台服务器上,相当于把一台服务器需要承担的负载量交给多台服务器处理,进而提高系统的吞吐率;另外如果其中某一台服务器挂掉,其他服务器