基于Centos7.2上Yum安装LNMP

/ Linux服务安装搭建 / 没有评论 / 717浏览

写在前面的话

尽管我个人从来都是编译安装的,但是还是写下来吧

nginx

安装

yum install -y nginx

启动

systemctl start nginx

php

安装

yum install php php-fpm php-bcmatch php-gd php-mbstring php-mcrypt php-mysql 

启动

systemctl start php-fpm

mysql

安装

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server

启动

systemctl start mysqld.service