侧边栏壁纸
  • 累计撰写 9 篇文章
  • 累计收到 0 条评论

命令行

2026-5-2 / 0 评论 / 270 阅读

开启SSH

sudo apt update
sudo apt install openssh-server

更新软件

sudo apt upgrade
sudo apt install net-tools curl wget vim build-essential

扩展硬盘
把卷组所有剩余空间都给逻辑卷

sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

扩展文件系统(假设是 ext4,Ubuntu 默认就是这个)

sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

设置临时全局代理(重启失效)

export http_proxy=http://192.168.31.172:7897
export https_proxy=http://192.168.31.172:7897

重启

reboot

关机

shutdown -h now

改密码

passwd