1)桥接网络,使其能够正常访问互联网,然后配置国内的华为apt源,源的内容如下(如果已经存在,请忽略);
nano /etc/apt/source.list
deb http://mirrors.huaweicloud.com/debian/ buster main
deb-src http://mirrors.huaweicloud.com/debian/ buster main
deb http://mirrors.huaweicloud.com/debian/ buster-updates main contrib
deb-src http://mirrors.huaweicloud.com/debian/ buster-updates main contrib
在cdrom源和Debian官方的apt源的前面添加“#”将其注释
#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
#deb http://security.debian.org/debian-security buster/updates main contrib
#deb-src http://security.debian.org/debian-security buster/updates main contrib
保存后退出
2)进行apt源更新
apt-get update
//注意:更新过程中,不能存在“E:”开头的报错
3)安装关键服务
a.安装apache2
apt-get install apache2 -y
//注意:安装过程中,不能存在“E:”开头的报错
b.安装PHP7.3
apt-get install php7.3-fpm php7.3-mysql php7.3-common php7.3-gd php7.3-json php7.3-cli php7.3-curl libapache2-mod-php7.3 -y
//注意:安装过程中,不能存在“E:”开头的报错
c.安装mariadb
apt-get install mariadb-server mariadb-client -y