摘要:
1、手动修改服务器时间 优点:修改简单易操作 缺点:时区重置 date -s '2021-12-22 14:44:20' 修改时间为: [root@bigdata101 ~]# date 2021年 12月 22日 星期三 14:44:24 CST 2、修改服... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(685)
评论(0)
推荐(0)
摘要:
物联网开发中,通过nb-iot发布过来的数据很多都是base64的数据,我们需要进行转换16进制后续转换10进制加以显示。以下提供base64转16进制方法。代码如下: 原数据: /4YAAAAFAAB1fDAwMDB8AAAAAAAAAAAAAAB8AAAA... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(605)
评论(0)
推荐(1)
摘要:
server { listen 8017; #server_name anitt.cn; # Vue路由模式为history需添加的配置 location / { if ... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(50)
评论(0)
推荐(0)
摘要:
package com.toncent.core.shiro.filter;import org.springframework.stereotype.Component;import javax.servlet.*;import javax.servlet.... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(65)
评论(0)
推荐(0)
摘要:
在 linux 上搭建 mqtt 服务器并不难,主要就是用到了 mosquitto 这款消息代理服务软件。其采用发布 / 订阅模式传输机制,轻量、简 单、开放并易于实现,被广泛应用于物联网之中。 Linux 版本: centos7.... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(412)
评论(0)
推荐(0)
摘要:
使用root身份编辑云服务器的ssh登录方式。 su root vi /etc/ssh/sshd_config 修改如下配置项: 把PasswordAuthentication no 改为 PasswordAuthentication yes 或去掉Pas... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(66)
评论(0)
推荐(0)
摘要:
@Slf4jpublic class NIOServer { private InetAddress addr; private int port; private Selector selector; private static i... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(311)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { SpringApplication.run(dwdp.class, args); try { ServerSocket ... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(253)
评论(0)
推荐(0)
摘要:
1.实现ApplicationRunner 2.添加注解 @Order(value = 1) 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(30)
评论(0)
推荐(0)
摘要:
nginx实现资源压缩的原理是通过ngx_http_gzip_module模块拦截请求,并对需要做gzip的类型做gzip压缩,该模块是默认基础的,不需要重新编译,直接开启即可。 基本配置 # 开启gzipgzip on;# 启用gzip压缩的最小文件,小于设... 阅读全文
posted @ 2022-08-11 18:49
码海兴辰
阅读(78)
评论(0)
推荐(0)
浙公网安备 33010602011771号