×
  • 在MacOS上制作ESXI启动盘

    google了很多次如何在mac上创建可引导ESXI启动盘,方法都是在终端命令dd烧录iso到U盘 diskutil list diskutil unmountdisk /dev/disk[1-9] dd if=Downloads/VMware-VMvisor-Installer-6.5.0.update01-5...

    2022-11-15 02:29 Falcon 阅读
  • Linux 报错"mount: unknown filesystem type

    前言: 同事叫把/dev/sda7 磁盘挂载到/data目录,当执行mount时报"mount: unknown filesystem type 'LVM2_member'  "错,如下为解决方案和思路;    LVM详细信息:(Arch Wiki简体中文)       ...

    2022-11-10 08:58 Falcon 阅读
  • 修复 Key is stored in legacy trusted.gpg keyring

    升级ubuntu到22.04之后更新源遇到“Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details” 这个警告,解决方法如下: 首先查看key l...

    2022-11-04 08:37 Falcon 阅读
  • Linux 扩大swap的方法和配置使用交换分区的策略

    扩大swap分区 # 将现有swap移动到主内存,可能需要几分钟 sudo swapoff -a # 创建新的swap文件,bs×count=最后生成的swap大小,这里设置2G sudo dd if=/dev/zero of=/swapfile bs=512M count=4 # 设置权限 sudo chmod 0600 /...

    2022-11-04 04:33 Falcon 阅读
  • 从Intel 迁移到m1后homebrew的恶心问题

    现在如果我用homebrew安装新软件,它会禁止你安装,并且让你做一次alternative install,这是因为我是从intel的Macbook迁移到M1的Macbook了,数据迁移过来后,当然这个垃圾homebrew也是使用intel时的路径,但现在它也要改弦更张了。我了个去,为什么改个安装前缀要重新来,还要处理之前安装过的应用,这工程可不小,加上之...

    2022-10-10 03:37 Falcon 阅读
  • ubutu 如何安装CA根证书到trust store

    如何识别 (PEM or DER)格式? A PEM格式是一种人类可读的base64编码证书,以 ----BEGIN CERTIFICATE----.开头 ,否则很可能是 DER 证书,需要进行转换。 安装PEM 格式证书 假设一个PEM格式证书名为local-ca.crt, 安装步骤如下 注意:确保.crt 扩展名很重要,否则系统不会进行...

    2022-10-10 02:37 Falcon 阅读
  • vsftp拾零

    启用ftps https://help.thorntech.com/docs/sftp-gateway-classic/enabling-ftps-using-vsftp/ 问题一:登录后列目录后 FTP 响应500错误,提示地址正在使用 500 Illegal PORT command. ftp: bind: Address already in...

    2022-10-03 06:30 Falcon 阅读
  • 【已解决】Pseudo-terminal will not be allocated because stdin is not a terminal.

    在终端下执行ssh命令,登录并执行命令用ssh到另一台主机,如: ssh root@n1 ssh hk 会返回错误信息 Pseudo-terminal will not be allocated because stdin is not a terminal. Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5....

    2022-10-02 07:16 Falcon 阅读
  • WordPress rest api/wp-json api 拾零

    官方文档在这里 ,这个东西很有用,可以获取特定的数据,并且以json的格式返回,部分示例: 如访问一篇文章的 endpoint https://example.com/wp-json/wp/v2/posts/[文章id] 按条件过滤,如只取文章id为 11,12 的文章数据 https://example.com/wp-json/wp/v2/po...

    2022-09-28 10:03 Falcon 阅读
  • code-server安装和升级、卸载

    安装 用官方提供的在线脚本安装 curl -fsSL https://code-server.dev/install.sh | sh 使用当前用户启动 sudo systemctl enable --now code-server@$USER 查看systemd日志可以看到 systemctl status code-server@$USE...

    2022-09-23 08:08 Falcon 阅读