Debian9 安装 php7.3.1 imap, fileinfo, mongodb 出问题

问答中心分类: LinuxDebian9 安装 php7.3.1 imap, fileinfo, mongodb 出问题
ed11 asked 4年 ago

https://imgur.com/EfvyWy3 Debian9 VPS 64bit 2GB RAM, 40 GB SSD  

PHP 7.3.1

Addon options: imap, fileifo, mongodb

3 Answers
oneinstack answered 4年 ago

从日志看是apt源问题,依赖没有好,如果是国内服务器,可切换源,如阿里云:

cat > /etc/apt/sources.list << EOF
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
EOF
apt-get update #更新apt源缓存
rm -f /root/.oneinstack #使第二次安装能重新初始化
./oneinstack/install.sh #重新安装

oneinstack answered 4年 ago
刚刚测试一次debian9 php7.3 没有问题!

ed11 answered 4年 ago
謝啦,
我重裝搞定了