Debian7下安装Nginx+PHP+MariaDB

**安装Nginx**Debian官方源里面的Nginx比较老,所以我们用Dotdeb源来安装Nginx。添加Dotdeb源,使用vim打开 /etc/apt/sources.list:> vim /etc/apt/sources.list 添加如下两行:> deb http://packages.dotdeb.org wheezy all deb-src http://packages.dotdeb.org wheezy all 导入GnuPG key: wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg | apt-key add – 然后安装Nginx apt-get install -y nginx-full 安装MariaDB apt-get…