linux配置问题汇总

1.修改ubuntu镜像源

//编辑文件
sudo nano /etc/apt/sources.list
//添加镜像源到sources.list文件中,注释掉不用的镜像连接
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
//文件保存退出以后
sudo apt update

2.环境变量配置

//编辑文件
nano ~/.bashrc
//配置文件中添加内容
export PATH=$PATH:/home/clant/Documents/node-v20.9.0-linux-x64/bin
//保存退出文件后
source ~/.bashrc

你可能感兴趣的:(linux,运维,服务器)