先重新DD一下debian10
bash <(wget --no-check-certificate -qO- 'https://github.com/GouGoGoal/SSPanel-Uim/raw/master/InstallNET.sh') -d 10 -v 64 -a
国内源 --mirror 'http://mirrors.ustc.edu.cn/debian/'
香港源 --mirror 'http://ftp.hk.debian.org/debian/'
日本源 --mirror 'http://ftp.jp.debian.org/debian/'
**源 --mirror 'http://ftp.tw.debian.org/debian/'
#安装常用命令
apt -y install wget vim curl gnupg lsb-release
#添加nginx主线源
echo "deb http://nginx.org/packages/mainline/debian buster nginx" >>/etc/apt/sources.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
apt-key fingerprint ABF5BD827BD9BF62
apt update
apt -y install nginx
#安装完毕后更改 /lib/systemd/system/nginx.service
[Service]
ExecStartPost=/bin/sleep 0.1
#延迟0.1毫秒
systemctl daemon-reload
#可以避免出现Can't open PID file /run/nginx.pid (yet?) 提示
mysql 源的地址 https://dev.mysql.com/downloads/repo/apt/
#添加mysql源
wget https://dev.mysql.com/get/mysql-apt-config_0.8.14-1_all.deb
dpkg -i
选择OK
#安装php
apt -y install php7.3-fpm php7.3-mysql php7.3-curl php7.3-gd php7.3-mbstring php7.3-xml php7.3-xmlrpc php7.3-opcache php7.3-zip php7.3 php7.3-json php7.3-bz2 php7.3-bcmath
#添加软链接,方便重启服务
ln -s /lib/systemd/system/php7.3-fpm.service /etc/systemd/system/php.service