赞
踩
一、Python源码安装
1.下载源码(3.12.4官网)tgz
2.Tar -zxvf压缩文件名
[root@localhost ~]#tar -zxvf Python-3.12.4.tgz
3.安装依赖包
yum -y install openssl-devel bzip2-devel libffi-devel zlib-devel gcc
3.编译安装
- [root@localhost bin]# ./configure --prefix=/usr/local/python3.12.4/
- [root@localhost bin]# make && make install
4.测试
二、Redis安装
1.安装依赖包
[root@localhost ~]# yum install -y gcc tcl
2.进入要下载的文件夹
[root@localhost ~]# cd /usr/local/
3.下载redis(.tar.gz)
[root@localhost ~]# wget https://download.redis.io/releases/redis-7.2.0.tar.gz
4.解压redis
[root@localhost ~]# tar -zxvf redis-7.2.0.tar.gz
5.进入redis安装目录
[root@localhost ~]# make && make install
6.运行redis
[root@localhost ~]# redis-server
三、安装MongoDB
1.配置yum源
- [root@localhost ~]# vim /etc/yum.repos.d/mongodb.repo
- [mongodb-org-7.0]
- name=MongoDB Repository
- baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/7.0/x86_64/
- gpgcheck=1
- enabled=1
- gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc
2.刷新yum源
[root@localhost ~]# yum repolist
3.安装MongoDB包
[root@localhost ~]# yum install -y mongodb-org
4.启动MongoDB服务
[root@localhost ~]# systemctl start mongod
5.进入数据库
[root@localhost ~]# mongosh
6.测试
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。