1.安装Nginx
yum install nginx
service nginx start
在浏览器输入ip查询是否搭建成功
2.安装mysql
wget http://repo.mysql.com/mysql57-community-release-el7.rpm
获取mysql安装包
rpm -ivh mysql57-community-release-el7.rpm
安装mysql
yum install mysql-server
安装mysql-server
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
扩展包管理
yum install yum-utils
3.安装php
安装php环境
yum install -y php php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt libmcrypt-devel php-fpm
原文地址:https://blog.51cto.com/14375805/2442986
时间: 2024-09-30 07:24:03