我是一个人的碎碎念

苍山负雪,明烛天南 | 我是一个人,只是一个人

Debian-12.0安装Nginx、php、mysql方法

运维笔记 0 评 0 度

测试系统:VPS 4核8G 30m 中国大陆云服务器
一、系统更新 & 依赖准备
首先更新系统包并安装基础依赖:

# 更新软件源
sudo apt update && sudo apt upgrade -y
# 安装基础编译/工具依赖
sudo apt install -y apt-transport-https lsb-release ca-certificates wget gnupg2 software-properties-common

sudo apt install -y php8.2 php8.2-{cli,gd,mysql,common,mbstring,bcmath,xml,curl,zip,fpm}

sudo apt install -y --allow-unauthenticated mysql-community-server=5.7. mysql-community-client=5.7. mysql-client=5.7.*

快来做第一个评论的人吧~