摘要: Python编程 通过queue实现前端的被动接收 python代码打包成exe 应用程序文件 argparse命令行传参 python2.7打印中文乱码的问题解决 使用python的locust库进行性能测试 高性能编程之 线程的使用 高性能编程之协程 asyncio pip的使用 Python内 阅读全文
posted @ 2020-05-08 15:55 wanglai 阅读(142) 评论(0) 推荐(0) 编辑
摘要: du -lh --max-depth=0 * 或者 du -h -d 0 * 阅读全文
posted @ 2022-02-11 13:30 wanglai 阅读(28) 评论(0) 推荐(0) 编辑
摘要: grep -n aaa a.yaml ,将文件出现aaa的行找出来 grep -v aaa a.yaml ,将文件没有出现aaa的行找出来 grep -r -n aaa ./ ,将当前文件夹下所有文件的aaa找出来 阅读全文
posted @ 2021-12-28 14:12 wanglai 阅读(24) 评论(0) 推荐(0) 编辑
摘要: linun和windows最好都使用docker安装 docker pull jenkinsci/blueocean docker run -u root --rm -d -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v 阅读全文
posted @ 2021-12-15 15:14 wanglai 阅读(75) 评论(0) 推荐(0) 编辑
摘要: curl xxx.txt, 报错 Illegal characters found in URL 使用:%s/\r//g, 将 \r 去除 使用:set fileformat=unix 指定文件格式 参考 https://www.cnblogs.com/xiaodi-js/p/6823054.htm 阅读全文
posted @ 2021-11-19 18:10 wanglai 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 更换yum源 cd /etc/yum.repos.d/ cp /CentOS-Base.repo /CentOS-Base-repo.bak # 备份原来的yum wget http://mirrors.aliyun.com/repo/Centos-7.repo # 下载阿里yum yum clea 阅读全文
posted @ 2021-11-19 13:42 wanglai 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 查看磁盘情况 fdisk -l mount报错 ` mount /dev/vdb /opt/qfusion mount: /dev/vdb is write-protected, mounting read-only mount: unknown filesystem type '(null)' ` 阅读全文
posted @ 2021-11-19 13:31 wanglai 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 语言结构 package main import "fmt" func main() { //这是一个简单的程序 fmt.Println("ccc") } 1.初始化go项目 go mod init 文件夹 执行go代码 go run xxx.go 生成可执行二进制文件 go build xxx.g 阅读全文
posted @ 2021-11-05 16:33 wanglai 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 概念一:linux系统中,一个进程会分配一个namespace 概念二: linux中通过Cgroups对一个或一组进程进行资源控制和监控的机制 1. 可对cpu和内存及磁盘IO等资源进行限制 2. 可控制的资源 3. 使用Cgroups控制进程的CPU资源消耗 4. 使用Cgroups控制进程的内 阅读全文
posted @ 2021-10-23 22:37 wanglai 阅读(57) 评论(0) 推荐(0) 编辑
摘要: cd ~ vim .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's 阅读全文
posted @ 2021-08-09 11:30 wanglai 阅读(54) 评论(0) 推荐(0) 编辑
摘要: vim ~/.bashrc alias python=/home/wb-zf485783/.pyenv/versions/3.8.5/bin/python alias pip=/home/wb-zf485783/.pyenv/versions/3.8.5/bin/pip 阅读全文
posted @ 2021-05-18 15:43 wanglai 阅读(92) 评论(0) 推荐(0) 编辑