Centos8更换阿里云源

备份当前的yum源配置文件sudo cp -a /etc/yum.repos.d /etc/yum.repos.d.backup清理原有的yum源配置文件sudo rm -f /etc/yum.repos.d/*.repo下载阿里云CentOS 8的源配置文件sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.c

- 阅读全文 -

Linux安装etcd

下载etcd进入github的release页面,找到对应的版本及系统并下载https://github.com/etcd-io/etcd/releases/wget https://github.com/etcd-io/etcd/releases/download/v3.5.14/etcd-v3.5.14-linux-amd64.tar.gz解压并移动到指定目录tar -zxvf etcd-v3

- 阅读全文 -

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 表示指定解压后的文件存储目录。

- 阅读全文 -