Linux下通过ssh上传下载文件 文章目录1.上传本地文件到服务器2.下载服务器文件到本地3.上传本地目录到服务器4.下载服务器目录到本地1.上传本地文件到服务器scp /path/filename username@servername:/path/例如:scp /opt/data/test.sql root@10.22.135.202:/opt/ 把本机/opt/data/目录下的test.sql文件上传到10.22.135.202这台服务器上的/opt/目录下。2.下载服务器文件到本地scp username@server
Java BigInteger转十六进制字符串 BigInteger转十六进制字符串输出法一:BigInteger bigIntegerNumber=new BigInteger("36346484083128697278780870929630320");String hexString = Hex.toHexString(bigIntegerNumber.toByteArray());法二:BigInteger bigIntegerNumber=new BigInteger("3634648408312869727878087092963
IDEA引入外部jar包,打包失败的解决方法 pom引入外部依赖 <dependency> <groupId>com.sys</groupId> <artifactId>sys</artifactId> <version>1.0.6</version> <scope>system</scope> <sy.
Handshake failed due to invalid Upgrade header: null 解决方案 websocket部署时发生Handshake failed due to invalid Upgrade header的解决方案。解决办法:在 Nginx ,location 中添加以下红色代码: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";server { listen 80; server_name localhost; location / {
Mysql insert插入成功后返回id 记一次mysql插入后返回当前插入记录的id。xml中,添加useGeneratedKeys="true" keyProperty="id"<insert id="insertSelective" parameterType="com.xxx.model.WhiteUser" useGeneratedKeys="true" keyProperty="id"> insert into white_user <trim prefix="(" suffix=
java对象Json序列化,修改Json序列化后字段名 @JSONField(name = “XXX”)记一次第三方请求,请求参数首字母大写的解决方法。定义一个User类import lombok.Data;@Datapublic class User { private String name; private String sex; private int age;}实例一个user,将user JSON序列化输出:public class UserTest { public static void
Windows10下安装MySQL 8.0.26 文章目录Win10 安装MySQL8.0(多服务版)1.下载MySQL 8.02.配置MySQL 8.0Win10 安装MySQL8.0(多服务版)1.下载MySQL 8.01)下载地址:https://dev.mysql.com/downloads/mysql/2)进入官网后选择对应的版本进行下载。3)解压缩,放在要安装的目录。解压后的目录如下:2.配置MySQL 8.01)创建my.ini文件,并将此文件导入解压目录下。my.ini文件内容如下:牵扯到地址的一定换为自己的地址![my
MongoDB下载安装教程 Win10下安装MongoDB1.下载MongoDB2.配置MongoDB1.下载MongoDB访问MongoDB官网,找到对应需要下载的MongoDB版本。下载类型自选MSI和Zip。本文基于Zip类型。https://www.mongodb.com/2. 将下载好的MongoDB解压到需要存放的目录。本文路径:(D:\mongodb-win32-x86_64-windows-4.4.5)2.配置MongoDB在解压的MongoDB根目录下,创建data、logs文件夹,其中data