首先更新一波:
apt update安装nginx:
apt install nginx安装php:
apt-get install php-fpm
apt-get install php-mysql
# 不用Apache的不要直接get install php php-common
# 会自动安装Apache,跟nginx冲突安装mariadb:
apt install mariadb-server
# 查看状态
systemctl status mariadb
# 配置数据库安全相关
mysql_secure_installation
评论