周凯,个人博客

  • 前端
  • 嵌入式
  • 工具
  • 后端
  • 随笔
个人记录
ubuntu

ubuntu22.04 配置静态ip

要在 Ubuntu 22.04 中配置静态 IP,请按照以下步骤操作: 打开终端 编辑网络配置文件: sudo nano /etc/netplan/00-installer-config.yaml 在文件中添加以下内容: network: version: 2 renderer: networkd ethernets: enp0s3: #网卡名称 dhcp4: no dhcp6: no addresses: [192.168.1.100/24] #静态IP地址和子网掩码 gateway4: 192.168.1.1 …

2023年 4月 25日 0条评论 1456点热度 0人点赞 周凯 阅读全文
其他

kkFileView 部署之后,禁止访问首页

nginx配置修改 # 文件预览 location /FileServer { # 过滤index路径,index为kkFileView的首页 if ($request_uri ~* "/index") { return 404; } proxy_pass http://localhost:30090; } # 解决文件预览服务无法加载js,css问题 location ~ /FileServer/*.*\.(js|css)?$ { proxy_pass http://localhost:300…

2023年 4月 23日 0条评论 746点热度 0人点赞 周凯 阅读全文
javascript

获取浏览器中url参数的方式

字符串截取,通过url获取参数 function getUrl(url){    let arr = url.split('?');    let params = arr[1].split('&');    let obj = {};    for(let i=0;i<params.length;i++){        let param = params[i].split('=');        obj[param[0]] = par…

2023年 4月 23日 0条评论 703点热度 1人点赞 周凯 阅读全文
其他

思源不正常关闭,导致出现 取内核服务端口失败 Failed to get kernel serve port

解决 思源使用的是 6806 端口,直接kill 6806端口即可 其他 https://github.com/siyuan-note/siyuan/issues/2552

2023年 4月 22日 0条评论 1087点热度 0人点赞 周凯 阅读全文
linux

linux 挂载磁盘

查看新添加的盘符:fdisk -l 硬盘分区(如果有分区需要) # 对指定硬盘分区 fdisk /dev/sde 先分区:输入n(分区) - 输入p(主分区) - 输入w(写入分区) 如果存在分区 先输入d删除所有分区 格式化硬盘文件系统 # 格式化硬盘的文件系统,这里格式化为 ext4 系统 mkfs -t ext4 /dev/sde 挂载硬盘 # 创建要挂载的文件夹 mkdir /data # 挂载硬盘到该文件夹上 mount /dev/sde /data 开机自动挂载 # 前面仅仅实现了手动挂载,但重启后并不…

2023年 4月 22日 0条评论 472点热度 0人点赞 周凯 阅读全文
typescript

前端Logs简单封装

ts const Logs = { /** * 成功 * @param val * @param title */ success(val: any, title?: string) { console.log(`%c ${title || 'success'}: `, 'color: #67C23A; font-weight: bold', val); }, /** * 失败 * @param val * @param title */ error(val: any, ti…

2023年 4月 19日 0条评论 981点热度 0人点赞 周凯 阅读全文
linux

rustdesk unsupported display server type wayland,x11 is expected rust连接ubuntu报错

解决 编辑 sudo nano /etc/gdm3/custom.conf WaylandEnable=false by removing “#” 取消#号注释 重新启动,重试连接就可以了

2023年 4月 18日 0条评论 1230点热度 0人点赞 周凯 阅读全文
ubuntu

ubuntu22.04 安装vnc

安装 sudo apt-get install x11vnc # 配置vnc密码 x11vnc -storepasswd # 启动vnc x11vnc -forever -shared -rfbauth ~/.vnc/passwd 配置 vnc 编辑配置文件 vim /etc/systemd/system/x11vnc.service [Unit] Description=Start x11vnc at startup. After=multi-user.target [Service] Type=simple E…

2023年 4月 18日 0条评论 677点热度 0人点赞 周凯 阅读全文
spring-boot

微信小程序,动态生成二维码,获取不限制的小程序码

WxChatUtil 工具 package jnpf.util.wxutil; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import jnpf.config.WxConfig; import jnpf.exception.BusinessException; import jnpf.util.JsonUtil; import jnpf.util.RedisUtil; import lombok.extern.…

2023年 4月 12日 0条评论 883点热度 0人点赞 周凯 阅读全文
搜索
分类
归档

COPYRIGHT © 2022-现在 周凯,个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

蒙ICP备18004897号