Linux编译安装MongoDB

下载二进制包进入官网下载页面 https://www.mongodb.com/try/download/community选择系统类型并复制下载链接(二进制压缩包)进入ssh进行下载 cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-7.0.3.tgz解压并复制到指定目

- 阅读全文 -

tar 解压文件到指定目录

使用命令tar -zxvf archive.tar.gz -C /path/to/destination/directory命令详解-z 表示使用 gzip 压缩。-x 表示解压文件。-v 表示在解压过程中显示详细的输出信息。-f 表示指定压缩文件的名称。-C 表示指定解压后的文件存储目录。

- 阅读全文 -

RockyLinux更换国内源

对于 Rocky Linux 8,使用以下命令替换默认的配置sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirror.nju.edu.cn/rocky|g'

- 阅读全文 -

Debian更换清华源

更新证书apt install apt-transport-https ca-certificates备份cp /etc/apt/sources.list /etc/apt/sources.list-bak执行修改# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ boo

- 阅读全文 -