diskgenius 还原rootfs到U盘
连接xshell 通过xftp拷贝BACKUP-arm-64-emmc.img.gz到ddbr下
输入ddbr恢复系统
安装nginx
apt-get install nginx 如果失败,先更新软件
安装php
sudo apt install -y php php-fpm php-cli php-mysql php-curl php-gd php-mbstring php-xml php-zip
php -v  # 查看版本
编辑 Nginx 站点配置:
sudo nano /etc/nginx/sites-available/default
添加 PHP 支持:
server {
  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php<版本>-fpm.sock; # 如 php8.2-fpm
  }
}
sudo systemctl reload nginx 重启生效
 /var/www/html;  站点目录
lsblk
mkdir /mnt/disk
mount /dev/sda /mnt/disk
blkid /dev/sda
/dev/sda: UUID="A4A1-876D" BLOCK_SIZE="512" TYPE="exfat"
UUID=你的硬盘UUID /mnt/disk 文件系统格式 defaults 0 0
UUID=A4A1-876D /mnt/disk exfat defaults 0 0
UUID=A4A1-876D /mnt/disk exfat defaults,noatime,nofail 0 0
mount -a
查看 eMMC 寿命信息
sudo apt update
sudo apt install mmc-utils
sudo mmc extcsd read /dev/mmcblk2 | grep -E "LIFE_TIME|PRE_EOL_INFO"
:Device life time estimation type A: 0x01
:Device life time estimation type B: 0x01
:Pre EOL information: 0x01
LIFE_TIME:寿命百分比(如 0x01 表示 0-10%,0x0A 表示 100%)。
PRE_EOL_INFO:预寿命终止状态(0x01 正常,0x02 接近寿命终点)。