摘要: 查看正在运行的虚拟机 esxcli vm process list 获取所有注册的虚拟机 vim-cmd vmsvc/getallvms 重启,可以移除掉卡死的任务 /etc/init.d/hostd restart 杀死虚拟机进程 esxcli vm process kill --type= [s 阅读全文
posted @ 2024-05-03 11:51 郭小睿 阅读(20) 评论(0) 推荐(0) 编辑
摘要: docker run -d --restart=always --name postgres -v /opt/pgsql/data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=123456 -p 54321:5432 postgres:10.12 阅读全文
posted @ 2024-04-08 13:58 郭小睿 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、磁盘写入率iostat,cpu占用率top/pidstat/mpstat,内存占用率mpstat,交换分区free同时也需要关注。 阅读全文
posted @ 2024-04-03 12:27 郭小睿 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1、先查看cpu数量 cat /proc/cpuinfo |grep "physical id"|uniq|wc -l 或者 nproc 2、使用uptime查看系统平均负载。这里显示的是 1 分钟、5 分钟和 15 分钟的平均负载。 15:36:33 up 1 day, 4:09, 1 user, 阅读全文
posted @ 2024-04-02 15:55 郭小睿 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 在执行npm run build的时候遇到了错误:TypeError: Class extends value undefined is not a constructor or null;而执行npm run serve是可以正常执行的,报错如下: building for production. 阅读全文
posted @ 2024-03-19 13:23 郭小睿 阅读(370) 评论(0) 推荐(0) 编辑
摘要: pip3 install --upgrade asn1crypto --user 阅读全文
posted @ 2024-03-12 23:40 郭小睿 阅读(3) 评论(0) 推荐(0) 编辑
摘要: the PyQt5 5.14.0 is broken because can't not install on resp pi 3 . you can to install a version of PyQt5 that working fine on resp. follow the steps: 阅读全文
posted @ 2024-03-12 23:39 郭小睿 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 报错ImportError: cannot import name ‘Image’ from ‘PIL’ 的时候大多数情况下是由于PIL版本和当前python的版本不兼容。 pip uninstall Pillow pip install "pillow<7.0.0" 阅读全文
posted @ 2024-03-12 23:39 郭小睿 阅读(62) 评论(0) 推荐(0) 编辑
摘要: apt-key adv --keyserver keyserver.ubuntu.com --recvB7B3B788A8D3785C 阅读全文
posted @ 2024-03-12 15:56 郭小睿 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/updates/x86_64/Packages/ 阅读全文
posted @ 2024-03-11 11:23 郭小睿 阅读(119) 评论(0) 推荐(0) 编辑
摘要: UPDATE ey_archives SET add_time = UNIX_TIMESTAMP('2022-01-01') + FLOOR(0 + RAND() * (UNIX_TIMESTAMP('2024-02-29') - UNIX_TIMESTAMP('2022-01-01') + 1)) 阅读全文
posted @ 2024-03-05 23:58 郭小睿 阅读(5) 评论(0) 推荐(0) 编辑
摘要: result="" for (var i = 2; i <= 100; i++) { var xpath = '//*[@id="app"]/div/div[3]/div[1]/div[3]/div/div[2]/div/div[1]/div[1]/div/div/div/div/div/div/d 阅读全文
posted @ 2024-01-16 14:18 郭小睿 阅读(16) 评论(0) 推荐(0) 编辑
摘要: windows @echo off REM 登陆ftp下载文件 set ftpUser=test_user set ftpPass=123456 set ftpIP=192.168.1.205 set ftpFolder=/ set LocalFolder=C:/Users/Administrato 阅读全文
posted @ 2023-12-25 16:49 郭小睿 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 前言 可参考:https://www.linuxprobe.com/ftp-deployment-authentication.html 因为手动敲代码太慢了,所以我总结了一份脚本,方便快速安装。 准备工作 安装之前的准备工作 yum -y install vsftpd systemctl star 阅读全文
posted @ 2023-12-25 16:47 郭小睿 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 现有的任务复制出来 crontab -l > cron.cron 新的写到文件里 echo '20 0 * * * bash ~/clean.sh' >> cron.cron 再把任务加到crontab crontab cron.cron 阅读全文
posted @ 2023-12-24 23:27 郭小睿 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、 导出 导出用户需要有导出对象的权限,例如导出表要有select权限、导出视图要有show view权限、导出触发器要有trigger权限、需要锁表时要有lock tables权限等。 如果dump文件中包含了GTID信息,则无法导入到未启用GTID的数据库(低于5.6.9版本的数据库不支持GT 阅读全文
posted @ 2023-12-24 23:26 郭小睿 阅读(282) 评论(0) 推荐(0) 编辑
摘要: const pattern = new RegExp(`(${problem.join('|').replace(/[\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')})`, 'g'); 阅读全文
posted @ 2023-12-19 16:27 郭小睿 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://developer.aliyun.com/article/1220039 阅读全文
posted @ 2023-12-18 16:28 郭小睿 阅读(28) 评论(0) 推荐(0) 编辑
摘要: https://www.coonote.com/note/tortoise-orm.html https://www.yuque.com/u1362970/xyh2wn/ma9g38gn6rekeuq7 https://zhuanlan.zhihu.com/p/635436561?utm_id=0 阅读全文
posted @ 2023-12-13 10:38 郭小睿 阅读(16) 评论(0) 推荐(0) 编辑
摘要: https://oraclelinux.pkgs.org/ https://oraclelinux.pkgs.org/8/ol8-baseos-latest-x86_64/kernel-devel-4.18.0-477.10.1.el8_8.x86_64.rpm.html https://ftp.s 阅读全文
posted @ 2023-11-28 00:53 郭小睿 阅读(192) 评论(0) 推荐(0) 编辑