yum安装LNMP

yum安装LNMP

1.YUM前的准备

yum安装首先第一点是快速,我个人感觉越快越好,没有特殊要求我一般yum,缺点嘛,安装有目录啥的都固定啦,安装我们不需要的模块。由于centos没有nginx源,请看这里http://nginx.org/en/linux_packages.html#stable

2.安装nginx

[root@Cassandra ~]# systemctl  start nginx
[root@Cassandra ~]# systemctl enable nginx

3.安装mariadb

[root@Cassandra ~]# yum install mariadb  mariadb-server mariadb-devel -y
[root@Cassandra ~]# systemctl  start mariadb 
[root@Cassandra ~]# systemctl enable  mariadb 

4.安装PHP

#安装PHP及组件,使PHP支持 MySQL、PHP支持FastCGI模式

 

 

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

posted @ 2017-08-12 16:56  Cassandrahan  阅读(77)  评论(0)    收藏  举报