常用
- 查询端口或进程:
netstat -ap | grep 端口号/进程名
- 杀死进程:
kill -9 进程号
- 进程守护:
nohup 启动命令
- 启动进程:
systemctl start 进程名
换源
备份资源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
换源
换源 1
2sudo sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
sudo sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list更新软件源:
sudo apt-get update
升级软件源:
sudo apt-get upgrade