Centos安装闻达流程

一、环境安装

1.安装系统(最小化安装)

2.环境调试
a.配置网络;(vi:“i”键切换编辑模式,保存退出:先esc,后输入“:wq”保存退出)(强制退出程序:ctrl+C)

vi /etc/resolv.conf

在resolv.conf 中添加以下内容:

nameserver 8.8.8.8
search localdomain

b.修改网卡配置;

cd /etc/sysconfig/network-scripts  //进入网卡配置文件目录
ls -a       //显示网卡配置文件
vi ifcfg-eno1  //编辑网卡配置文件

修改:“ONBOOT”值由“no”修改为”yes”;:wq保存退出;reboot重启系统;

c.安装wget、git;

yum -y install wget
yum -y install git

d.安装Anaconda;

wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh //下载Anaconda
sudo sh Anaconda3-2023.03-1-Linux-x86_64.sh //安装Anaconda

reboot //重启生效

e.修改pip国内镜像;

[root@localhost ~]# cd ~
[root@localhost ~]# mkdir .pip
[root@localhost ~]# cd .pip
[root@localhost .pip]# vi pip.conf

添加内容如下:
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn 

f.安装wenda闻达环境

$ cd ~				//进入当前用户文件夹
$ git clone https://github.com/wenda-LLM/wenda.git		//从GitHub上下载wenda闻达git项目
$ cd ~/wenda/		//进入wenda文件夹
$ pip3 install -r ~/wenda/requirements/requirements.txt	//安装依赖环境