分类 服务器 下的文章

自建ubuntu服务器有200G,打开1panel查看磁盘只有100G

解决方法:
df -h / 命令的输出显示:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv 97G 7.5G 84G 9% /

root@iptv:~# sudo lvdisplay /dev/ubuntu-vg/ubuntu-lv
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID kCoam9-w4Mj-24e3-UBPx-l0ya-al9p-tLKExK
LV Write Access read/write
LV Creation host, time ubuntu-server, 2025-02-16 12:52:46 +0000
LV Status available

LV Size <196.95 GiB Current LE 50418 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 运行 resize2fs 命令,调整文件系统大小以使用逻辑卷上的所有空间: sudo resize2fs /dev/ubuntu-vg/ubuntu-lv 再次验证,已成功 root@iptv:~# df -h /

在中国地区使用 Ubuntu 24.04 服务器通过 SSH 安装 Docker 的详细步骤(已针对国内网络环境优化):


更新系统软件包**

sudo apt update && sudo apt upgrade -y

安装 Docker 依赖工具

sudo apt install -y apt-transport-https ca-certificates curl software-properties-common

添加 Docker 官方 GPG 密钥(替换为国内镜像加速)**

# 使用阿里云镜像源下载 GPG 密钥
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

添加 Docker 软件源(替换为国内源)**

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

下载安装docker
官方下载地址:https://download.docker.com/linux/ubuntu/dists/noble/pool/stable/amd64/,下载最新的,最底部的就是。

wget http://php.16888.xyz/docker-compose-plugin_2.32.4-1~ubuntu.24.04~noble_amd64.deb,下载的固件上传到自有服务器php.16888.xyz。

sudo dpkg -i docker-compose-plugin_2.32.4-1~ubuntu.24.04~noble_amd64.deb,安装。

docker compose version,检查docker版本。

然后到1panel官网查找安装命令进行安装,因为只有安装好docker,其它的就交给1panel安装程序。
http://192.168.2.15:14583/ubuntu_home
tvzb
Y2k