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 80, Mariadb守护TCP 3306  

 使用浏览器可尝试访问:   http://<nginx-server-ip-address>

 

4. 其他注意事项

可以临时关停selinux/iptables/firewalld
校验服务OK,则启用安全设定及规则。

 

posted @ 2020-04-04 13:46  Linetwork  阅读(194)  评论(0)    收藏  举报