ubuntu笔记

2019-12-26 11:37  108人阅读  评论 (0)
Tags: ubuntu

ubuntu 笔记

查看版本

cat /etc/issue
cat /etc/lsb-release
cat /proc/version
uname -a
lsb_release -a

切换源

# 备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

# 替换原有文件的地址为镜像地址
sudo vim /etc/apt/sources.list
%s/archive.ubuntu.com/mirrors.163.com/g

# 更新源
sudo apt-get update
sudo apt-get upgrade

安装gcc等软件

sudo apt install -y gcc g++ make

redis

cd deps
make lua hiredis linenoise jemalloc
cd ..
make
make install