![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
小小白兔兔
工作邮箱:VueJava@gmail.com
展开
-
centos7 更新时间
1、下载ntpdate工具,使用该工具可以与时间服务器同步。yum -y install ntp ntpdate2、设置系统时间与网络时间同步。ntpdate cn.pool.ntp.org3.将系统时间写入硬件时间 。hwclock --systohc使用timedatectl 查看当前时区timedatectl status查看中国时区的完整名称timedatectl list-timezones |grep Shanghai修改为中国时区timedatectl set-timezone原创 2022-12-08 13:36:17 · 1127 阅读 · 0 评论 -
SCADA系统
在工业现场一般都是采用Modbus RTU协议,一般而言,大家说的基于串口通信的Modbus通信协议都是指Modbus RTU通信协议。与Modbus RTU协议相比较,Modbus TCP协议则是在RTU协议上加一个MBAP报文头,并且由于TCP是基于可靠连接的服务,RTU协议中的CRC校验码就不再需要,所以在Modbus TCP协议中是没有CRC校验码的,所以就常用一句比较通俗的话来说:Modbus TCP协议就是Modbus RTU协议在前面加上五个0以及一个6,然后去掉两个CRC校验码字节就OK。原创 2022-10-31 11:41:54 · 301 阅读 · 0 评论 -
linux之日志查找操作
跳到当前行的最后一个字符 :在当前行按“$”键,即“shift+4”。跳到文本的最后一行:按“G”,即“shift+g”。跳到文本的第一行的第一个字符:按两次“g”。跳到当前行的第一个字符:在当前行按“0”。原创 2022-10-15 11:10:13 · 962 阅读 · 0 评论 -
轻量级git仓库 centos部署配置gogs代码仓库
使用Go语言开发使得Gogs能够通过独立的二进制分发,并且支持Go语言支持的 所有平台,包括Linux、Mac OS X、Windows以及 RM平台。Gogs可以说就是简单版本的github,可以提供代码和文档的存放,可以满足基本团队需求。2.在网页配置完信息后,要关闭gogs一次,再打开即可。参考:https://www.cnblogs.com/rxysg/p/15683699.html。若后面更改配置,修改文件:gogs/custom/conf/app.ini。2.登陆后创建数据库。原创 2022-10-13 11:48:52 · 338 阅读 · 0 评论 -
MiB 和 MB,KiB 和 KB 等的区别
1KB(kilobyte) = 1000 byte, 1KiB(kibibyte) = 1024 byte1MB(megabyte) = 1000000 byte, 1MiB(mebibyte) = 1048576 bytehttp://t.zoukankan.com/uakora-p-14393712.htmlhttps://blog.csdn.net/m0_37526672/article/details/80334595原创 2022-03-11 11:45:17 · 679 阅读 · 0 评论 -
社区版emqx安装后修改登入到dashboard密码 http://ip:18083/
登入地址:http://ip:18083/修改用户名admin密码为adminemqx_ctl admins passwd admin admin原创 2022-03-08 22:04:01 · 2653 阅读 · 0 评论 -
您的主机不满足在启用 Hyper-V 或 Device/Credential Guard 的情况下运行 VMware Workstation 的最低要求
1.在控制面板关闭Hyper-V按Windows键,搜索控制面板,点启用或关闭Windows功能,找到Hyper-V,把勾选去掉,选择不重启2.通过命令行关闭Hyper-V(彻底关闭Hyper-V)以管理员身份运行Windows Powershell (管理员)(Windows键+X)运行下面命令并重启电脑:bcdedit /set hypervisorlaunchtype off...原创 2022-03-08 17:46:57 · 623 阅读 · 0 评论 -
SpringBoot启动记录
一、生成SpringApplication生成对象的时候运行构造函数,首先初始化SpringApplication定义的属性值(属性在定义时有初始值的),然后运行构造函数中的语句。构造函数中:获取WebApplicationType并设置获取系统引导程序并设置(Bootstrapper),getSpringFactoriesInstances,设置bootstrappersgetSpringFactoriesInstances(ApplicationContextInitializer.class原创 2022-01-28 15:06:43 · 680 阅读 · 0 评论 -
ubuntu18.04操作记录
一、解禁Ubuntu系统默认禁止root用户ssh登录"PermitRootLogin” 设置是否允许root通过ssh登录。实际生产环境里是设成 “no”#修改sshd服务配置文件vim /etc/ssh/sshd_config# Authentication:#LoginGraceTime 2m#PermitRootLogin prohibit-passwordPermitRootLogin yes#StrictModes yes#MaxAuthTries 6#MaxSess原创 2022-01-27 10:41:46 · 1855 阅读 · 0 评论 -
Linux磁盘操作
Ubuntu 开机自动挂载硬盘https://www.cnblogs.com/fieldtianye/p/9295986.html原创 2022-01-26 09:46:48 · 879 阅读 · 0 评论 -
nohup之java后台打jar包 - 运行jar包命令
启动脚本#!/bin/bashnohup java -jar data.jar > nohup.out 2>&1 &停止脚本#!/bin/bashPID=$(ps -ef | grep data.jar | grep -v grep | awk '{ print $2 }')if [ -z "$PID" ]thenecho Application is already stoppedelseecho kill -9 $PIDkill -9 $PIDf原创 2022-01-06 15:08:15 · 1002 阅读 · 0 评论 -
nginx配置 持续更新
nginx设置默认监听80端口1、代理localhost/wc/ 到localhost:18888 proxy_pass:配置需要反向代理到的实际地址 ; proxy_redirect:重定向地址,具体参考https://cloud.tencent.com/developer/article/1027558 location /wc/ { proxy_pass http://localhost:18888/; proxy_cookie_path / /; pro原创 2022-01-06 22:43:11 · 1622 阅读 · 0 评论 -
nginx配置 外网参考
在使用Nginx做反向代理功能时,有时会出现重定向的url不是我们想要的url,这时候就可以使用proxy_redirect进行url重定向设置了。proxy_redirect功能比较强大,其作用是对发送给客户端的URL进行修改!!语法:proxy_redirect [ default|off|redirect replacement ];默认:proxy_redirect default;配置块(使用的字段):http、server、location当上游服务器返回的响应是重定向或刷新请求(如HT原创 2022-01-06 22:29:37 · 3423 阅读 · 0 评论 -
VMware设置Nat模式 - 共享Windows端口配置
一、Windows网卡配置VMnet8配置VMnet1配置二、虚拟机网卡配置网络连接改为Nat模式配置虚拟机IP地址和网关,注意网关一定要为NAT设置中的192.168.88.2原创 2022-01-05 18:13:25 · 673 阅读 · 0 评论 -
centos8安装mysql的rpm包及注意事项(centos8可以安装最新版本的mysql-8.0.26)
1.下载:mysql-5.7.34-1.el7.x86_64.rpm-bundle.tar须要的mysql组件,有4个:分别是 server、client、common、libs2.使用 rpm 命令安装MySql组件使用命令rpm -ivh {-file-name}进行安装操作。按照依赖关系依次安装rpm包 依赖关系依次为:common→libs→client→server安装client时可能出现问题,这个时候安装 yum install libncurses* yum install l原创 2021-09-29 09:53:24 · 448 阅读 · 0 评论 -
centos7 centos8包管理
下载:wget 下载地址安装: rpm -ivh rpm包安装RPM 工具使用分为安装、查询、验证、更新、删除等操作命令格式:rpm [参数] 软件包参数:-i 是 install 的意思。安装软件包-v 显示附加信息,提供更多详细信息-V 校验,对已经安装的软件进行校验-h --hash 安装时输出####标记备注:当一个 rpm 包安装到系统上之后,安装信息通常会保存在本地的 /var/lib/rpm/目录下;查询用法:rpm -q(query) 常与下面参数组合使用-a(a原创 2021-09-29 09:27:58 · 222 阅读 · 0 评论 -
centos7时钟相关
设置系统时间为中国时区并启用NTP同步yum install ntp // 安装ntp服务systemctl enable ntpd // 开机启动服务systemctl start ntpd // 启动服务timedatectl set-timezone Asia/Shanghai // 更改时区timedatectl set-ntp yes // 启用ntp同步ntpq -p // 同步时间timedatectl 命令# 读取时间timedatectl //等同于 timedate原创 2021-09-28 09:13:38 · 197 阅读 · 0 评论 -
Centos7端口查看命令
查看Centos端口命令: # netstat -lntp #查看监听(Listen)的端口# netstat -antp #查看所有建立的TCP连接其他关于查看服务器网络信息命令:1、查看Linux系统主机名: # hostname localhost.localdomain2、查看服务器IP地址: # ifconfig|grep 'inet addr:'|grep -v '127.0.0.1'|cut -d: -f2|awk '{ print $1}' 192.原创 2021-09-19 16:45:18 · 4322 阅读 · 0 评论 -
jetlinks-community启动报错 - PostgreSQL数据库连接异常及解决方法
使用:java -jar jetlinks-standalone.jar运行项目出现如下问题:Caused by: org.springframework.dao.PermissionDeniedDataAccessException: Open R2DBC Connection; Ident authentication failed for user "postgres"; nested exception is io.r2dbc.postgresql.ExceptionFactory$Postgr原创 2021-09-19 16:34:49 · 1706 阅读 · 0 评论 -
redis安装
https://redis.io/downloadInstallationFrom source codeDownload, extract and compile Redis with:$ wget https://download.redis.io/releases/redis-6.2.5.tar.gz$ tar xzf redis-6.2.5.tar.gz$ cd redis-6.2.5$ makeThe binaries that are now compiled are avai原创 2021-09-19 13:59:49 · 203 阅读 · 0 评论 -
TimescaleDB数据库建立在PostgreSQL基础上
安装:postgresqlhttps://www.postgresql.org/download/1.直接TimescaleDB数据库,这个时候会提示你,如果没有安装过postgresql ,则会让你安装https://docs.timescale.com/timescaledb/latest/how-to-guides/install-timescaledb/self-hosted/安装好后启动启动:service postgresql start2.安装pgadmin,选择下载windows原创 2021-09-17 16:00:26 · 237 阅读 · 0 评论 -
thingsboard学习笔记
安装指南:https://thingsboard.io/docs/user-guide/install/installation-options/thingsboard安装在服务器中后,已经自带了mqtt服务器,不要在安装mqtt服务器设备:设备凭证中使用access token真实设备采集数据后,可以通过mqtt上传至此设备,通过access token识别。例如我们通过Mqtt fx客户端发送数据模拟的时候user name就是这个access token,密码不需要。...原创 2021-09-07 17:54:48 · 766 阅读 · 0 评论 -
MQTT及配套软件使用mqttfx
官方地址:https://mqtt.org/software/本文主要介绍如何使用mqttfx发布数据测试桌面模拟数据发布软件下载:http://www.jensd.de/apps/mqttfx/1.7.1/配置:发布样式如下:原创 2021-08-26 16:07:39 · 213 阅读 · 0 评论 -
OpenSSL证书合成
openssl 证书一、openssl 简介openssl 是目前最流行的 SSL 密码库工具,其提供了一个通用、健壮、功能完备的工具套件,用以支持SSL/TLS 协议的实现。官网:https://www.openssl.org/source/构成部分密码算法库密钥和证书封装管理功能SSL通信API接口用途建立 RSA、DH、DSA key 参数建立 X.509 证书、证书签名请求(CSR)和CRLs(证书回收列表)计算消息摘要使用各种 Cipher加密/解密SSL/TLS 客户端原创 2021-08-13 16:19:51 · 1098 阅读 · 0 评论 -
Ubuntu1804安装nginx
#检查gcc版本gcc -v#没有则安装apt install gcc#安装依赖apt-get install libpcre3 libpcre3-devapt-get install zlib1g-devapt-get install openssl#官网下载nginxwget https://nginx.org/download/nginx-1.20.1.tar.gz#切换到解压的nginx源码,编译安装./configuremake && sudo mak原创 2021-08-13 16:05:16 · 308 阅读 · 0 评论 -
MQTT之https页面请求问题
网站开启了https,开始总会遇到各种问题,用户登入认证失败,视频请求失败,mqtt连接失败等问题。是不是很不爽,来看看,教你怎么解决这些问题。1.网站开启https,mqtt连接失败解决过程,开启activemq的ssl加密传输,前端直接请求wss://192.168.1.10:6165,注意6165是我开启了mqtt的ssl端口 <!-- The transport connectors expose ActiveMQ over a given prot原创 2021-08-13 10:46:05 · 1661 阅读 · 0 评论 -
linux中批量修改图片名字为数字
#!/bin/bashIFS=''i=1;for x in *.jpg; do mv $x $i.jpg; let i=i+1; done原创 2021-08-06 16:11:18 · 208 阅读 · 0 评论 -
ubuntu远程登入及网卡配置
https://www.cnblogs.com/zmblx/p/10075353.htmlsudo vim /etc/ssh/sshd_config找到并用#注释掉这行:PermitRootLogin prohibit-password // 允许root登录,但是禁止root用密码登录(默认值在文件中是被注释掉的)新建一行 添加:PermitRootLogin yes //允许root登录,设为yes。...原创 2021-07-13 10:18:05 · 234 阅读 · 0 评论 -
SRS测试GB-28181功能
目前GB28181还在开发阶段只有feature/gb28181分支有这个功能,还不完善,仅作为试验尝鲜一、下载此分支代码,编译安装git clone -b feature/gb28181 https://gitee.com/ossrs/srs.git &&cd srs/trunk && ./configure --with-gb28181 && make clean && make 二、安装完成后修改push.gb28181.co原创 2021-07-08 16:16:38 · 1964 阅读 · 1 评论 -
SIP协议 - Java开源jar
JAIN-SIPPJSIPhttps://www.jianshu.com/p/ed1737fdc757原创 2021-07-07 18:29:22 · 3191 阅读 · 0 评论 -
实时音视频开发之开源项目
实时音视频开发之开源项目https://blog.csdn.net/liuweihui521/article/details/95476484原创 2021-07-07 11:34:25 · 183 阅读 · 0 评论 -
sip协议开源实现
视频会议系统由于需要与不同的终端进行连接,因此我们需要视频会议终端遵循统一的协议,H.323协议是视频会议软件使用最广泛的协议栈,但H.323设计得较为复杂,用户在调用H.323协议过程较多,因此利用H.323协议的视频会议系统开发周期比较长。而SIP也是视频会议广泛应用的协议栈,SIP协议相当H.323较为简单,开发周期短,因此SIP协议栈受到许多视频会议厂商的支持,下面我们就列举一下几个重要的开源SIP协议栈。1、OPAL协议栈OPAL(Open Phone Abstraction Library)原创 2021-07-07 11:27:37 · 1040 阅读 · 0 评论 -
centos7安装ffmpeg
由于centos7仓库中没有,我们需要下载,ubuntu可以直接仓库安装sudo yum install epel-releasesudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpmsudo yum install ffmpeg ffmpeg-develffmpeg -versionffmpeg -h #查看参数 这样就完成了原创 2021-07-01 16:39:12 · 182 阅读 · 0 评论 -
geoserver使用
geoserver导入地图数据.shphttps://blog.csdn.net/u012413551/article/details/87999686原创 2021-06-23 10:53:20 · 93 阅读 · 0 评论 -
Linux搭建简单的图片服务器
nginx配置图片服务器location ~ .*\.(gif|jpg|jpeg|png)$ { expires 24h; root /home/images/;#指定图片存放路径 access_log /home/nginx/logs/images.log;#图片 日志路径 proxy_store on; proxy_store_access user:rw gro原创 2021-06-18 10:44:49 · 973 阅读 · 0 评论 -
centos7开启远程ssh以root用户密码登入
以root权限执行以下命令vim /etc/ssh/sshd_config开启下面2行的命令,并设置为yes#默认为no,需要开启root用户访问改为yesPermitRootLogin yes #默认为no,改为yes开启密码登陆 PasswordAuthentication yes ...原创 2021-06-17 09:46:50 · 5310 阅读 · 0 评论 -
阿里云服务器安装ActiveMQ Artemis修改配置并通过公网访问Management Console
1.创建实例2.修改实例broker中的bootstrap.xml文件修改配置创建的实例broker中的bootstrap.xml,修改为bind=“http://0.0.0.0:8161”配置如下:<broker xmlns="http://activemq.org/schema"> <jaas-security domain="activemq"/> <!-- artemis.URI.instance is parsed from artemis.ins原创 2021-06-11 16:15:08 · 411 阅读 · 1 评论 -
Linux之-atime,-mtime,-ctime含义
最近访问时间 access time (-atime)最近更改时间 modify time (-mtime)最近状态改动时间 change time(-ctime)[root@localhost logs]# stat catalina.out File: ‘catalina.out’ Size: 194552480 Blocks: 379992 IO Block: 4096 regular fileDevice: fd00h/64768d Inode: 67519574原创 2021-06-10 10:36:57 · 717 阅读 · 0 评论 -
post请求可以人为主动在地址中拼接参数
post请求可以人为主动在地址中拼接参数,拼接的参数可以直接像get那样接收0.0.0.0- - [09/Jun/2021:15:35:47 +0800] "POST /huawei/connect?signature=fh28c777439e65313c03t8eee2312f57p684efd3×tamp=1623224147&nonce=1060984980&openid=adlkgjaslkdgjaslkdj HTTP/1.1" 200 305 "-" "Mozi原创 2021-06-09 15:57:28 · 6756 阅读 · 0 评论 -
java实现sha1
输入字符串使用原生sha1加密String original = "this is plaintext";String mySignature; try { MessageDigest md = MessageDigest.getInstance("SHA1"); md.update(original.getBytes()); byte[] digest = md.digest(); Str原创 2021-06-08 10:01:44 · 3548 阅读 · 0 评论