CentOS 7 X64 LNMP快速安装

1. 背景

  一台云服务器  CentOS 7.X x64

  最快速的安装,展示类应用

2. 安装过程

# 更新epel-release 依赖库

yum install epel-release -y

# 强制YUM安装Nginx、Mariadb、PHP组件 

yum -y install nginx* mariadb* php* --skip-broken

# 启动服务并设置开机启动服务

systemctl start nginx
systemctl start mysqld
systemctl enable nginx
systemctl enable mysqld

3. 验证安装结果

netstat -plutn  #默认Nginx守护TCP 3306  Mariadb守护TCP 80

猜你喜欢

转载自www.cnblogs.com/linetwork/p/12631516.html