01 2022 档案
摘要:1. 今天踩了一个大坑,IDE的文件都没commit,然后pull代码的时候,没注意,直接reset了 2. 处理方法 git fsck --lost-found 找到lost-found/other文件, 然后使用编辑器打开, 查看文件内容, 虽然文件不是自己最新的, 但是还是很有用的, 找回了一
阅读全文
摘要:1. 问题代码python self.browser.switch_to_window_handles(browser.window_handles[-1]) 2. 解决方法 self.browser.switch_to.window(browser.window_handles[-1])
阅读全文
摘要:1. 下载链接 # https://github.com/allure-framework/allure2/releases# allure文档:https://docs.qameta.io/allure/ 2. 安装 ubuntu sudo dpkg -i allure_2.17.2-1_all.
阅读全文
摘要:1. 安装第三方库 pip install websocket pip install websocket-client 2. 实战 import time from websocket import create_connection url = 'ws://192.168.1.100:8888/
阅读全文
摘要:1. 在哪里 apt-get install apps 这样的命令,一般会将下载文件放在 /var/cache/apt/archives目录下,然后安装。 2. 如何清理 apt-get clean删除/var/cache/apt/archives/ 和 /var/cache/apt/archive
阅读全文
摘要:1. 更新系统 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get autoremove 2. 安装postfixadmin sudo apt install php7.2-fpm php7.2-cli php7.2-imap php
阅读全文
摘要:1. shell脚本 #!/bin/bash echo 'some id_rsa content'>~/.ssh/id_rsa_mac chmod 600 ~/.ssh/id_rsa_mac eval `ssh-agent` ssh-add ~/.ssh/id_rsa ssh-add ~/.ssh/
阅读全文
摘要:1. 复制密钥到主机 复制到你自己win主机的 ssh目录, C:\Users\xxxx\.ssh\id_rsa_some,自己命个名 2. 添加密钥 报错: Error connecting to agent: No such file or directory 解决方法:【以管理员身份运行】运行
阅读全文
摘要:由于开发给了个jar,本地搭建个环境 然后运行就报错error unable to access jarfile java -jar antenna-server-1.0.0-jar 实际是包名不对,不是“-”, 应该是“.”
阅读全文
摘要:1. 官网 https://www.proofpoint.com/us/products/email-protection/open-source-email-solution 2. 使用qq/163/126免费个人邮箱,申请获取授权码 3. smtp 非ssl #!/bin/bash read -
阅读全文
摘要:1. 默认打印是一行的 debug_logger.info(f'[rsp json] {rsp.json()}') 2022-01-10 20:38:53,108 | root | INFO | [rsp json] {'code': 200, 'msg': 'SUCCESS', 'data': {
阅读全文
摘要:1. 开始我是用sudo去安装, 可能用到了系统环境 sudo pip3 install -r requirements.txt 2. 改成如下即可 pip3 install -r requirements.txt --user
阅读全文
摘要:由于帐号并没有开启免密码导致的 假设当前帐号为jenkins 1 打开sudoers sudo vim /etc/sudoers 2 添加免密码 jenkins ALL = NOPASSWD: ALL
阅读全文
摘要:1. 打开系统配置,配置 Extended E-mail Notification 注意添加认证凭据 2. 打开系统配置,配置邮件通知 3. 为maven构建项目配置邮件通知 基本默认即可 4. 手动触发,查看邮件发送 到此基本完成 参考:https://www.cnblogs.com/imyalo
阅读全文
摘要:一、相关文档 https://wiki.archlinux.org/title/Dnsmasq 二、安装 Ubuntu 18.04附带了systemd-resolve,需要禁用它,因为它绑定到53端口,与Dnsmasq端口冲突。 运行以下命令以禁用已解析的服务: sudo systemctl dis
阅读全文
摘要:1. 官网 # http://doc.ewomail.com/docs/ewomail/install 2. docker hub 镜像 # https://registry.hub.docker.com/r/bestwu/ewomail 3. 安装docker https://www.cnblog
阅读全文