LAMP

安装工具

yum install wget lrzsz -y

安装 Apache httpd

yum install httpd httpd-devel -y
systemctl start httpd
systemctl enable httpd

关闭防火墙

systemctl stop firewalld.service
systemctl disable firewalld

检查httpd是否可以访问

安装 mysql

yum install mariadb mariadb-server mariadb-libs mariadb-devel

开启 mysql

systemctl start mariadb
systemctl enable mariadb

安装 php

yum -y install php php-mysql

安装php常用模块

yum install -y php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-bcmath

重启httpd

systemctl restart httpd

你可能感兴趣的:(LAMP)