Debian环境安装及配置(nginx、php、mariadb)

首先更新一波:

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

评论

暂无

添加新评论