一段脚本
lantinglou 发布于 2023-03-21
#!/bin/bash # Download and install Brook Server curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_amd64 -o...
阅读(74)评论(0)赞 (0)
lantinglou 发布于 2023-03-21
#!/bin/bash # Download and install Brook Server curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_amd64 -o...
阅读(74)评论(0)赞 (0)
lantinglou 发布于 2022-12-28
curl -s -k https://172.16.104.139/xmldata\?item\=all |grep '<MACADDR>' |awk -F">" '{print $2}' |awk -F"<" '{print $1}'|head -n 3...
阅读(51)评论(0)赞 (0)
lantinglou 发布于 2022-12-07
我自己亲测:12700 cpu 自组的nas,CPU实际功耗30瓦,设置节能模式后CPU实际功耗10瓦左右 因为本身linux系统模式是性能模式,大概率CPU频率是跑在最大频率上的 原理很简单,windows笔记本都会有省电模式、性能模式 linux同样也有省电模式和性能模式的调...
阅读(39)评论(0)赞 (1)
lantinglou 发布于 2022-11-23
修改 zshrc 文件 vi ~/.zshrc alias python="/usr/local/bin/python3" alias pip="/usr/local/bin/pip3" 在命令行输入: source ~/.zshrc
阅读(27)评论(0)赞 (0)
lantinglou 发布于 2022-11-11
ulimit 是一个计算机命令,用于shell启动进程所占用的资源。 常用指令 ulimit -a //查看ulimit 设置 ulimit -n //查看ulimit 限制 socket数量 ulimit -n 10000 //设置为10000 仅限当前shell有效 Linu...
阅读(33)评论(0)赞 (0)
lantinglou 发布于 2022-10-12
My workaround: – gain access to the CT with pct enter <CTID> – enable the network with ifup eth0 – download this yum...
阅读(42)评论(0)赞 (0)
lantinglou 发布于 2022-10-05
有的时候SMTP的默认25端口不能用会导致无法使用邮箱功能,解决办法就是添加多端口。 1、修改postfix的配置文件 vim /etc/postfix/master.cf 在已有第一行: smtp inet n – n – - smtpd 之后添加: s...
阅读(38)评论(0)赞 (0)
lantinglou 发布于 2022-10-05
因为设置 rewrite 或 网站设置里面 开启 Http to https 导致 Let’s Encrypt 在验证的网站时无限跳转,Let’s Encrypt 申请失败后 cyberpanel改为自签名证书, 解决方案: 先关闭所有HTTP跳转HTTP...
阅读(35)评论(0)赞 (0)
lantinglou 发布于 2022-09-13
前言 在项目开发中,为了提高项目开发效率,一般会选择前后端分离开发的形式,但是如果不进行身份鉴别的话,后台的接口是公开暴露的,只要访问URL便可获取到接口中的数据,这样的很不安全的。为了保证数据的安全性,我们需要设计api的鉴权机制。 常见的接口鉴权机制 1. HTTP Basi...
阅读(32)评论(0)赞 (0)
lantinglou 发布于 2022-08-28
#1.Creat cookie curl --silent --insecure --data "username=root@pam&password=" \ https://192.168.1.3:8006/api2/json/access/ticket\ | jq -...
阅读(41)评论(0)赞 (0)
热门文章
阅读 (868)赞 (33)
1VSCode 报错:could not establish connection to阅读 (403)赞 (42)
2宝塔面板一键docker部署阅读 (337)赞 (1)
3实用命令行修改Mac各项睡眠时间阅读 (328)赞 (4)
4CentOS7开启samba共享阅读 (319)赞 (155)
5CentOS6 更换yum源的方法