我是使用VMware 然后用shell工具进行部署的 这个工具的使用步骤我就不写了 我直接从linux系统开始写部署流程了。
1.配置环境
(1)安装httpd
yum install httpd -y
显示已安装就是安装成功
已安装: httpd.x86_64 0:2.4.6-97.el7.centos.5 作为依赖被安装: apr.x86_64 0:1.4.8-7.el7 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-97.el7.centos.5 mailcap.noarch 0:2.1.41-2.el7 完毕!
(2). 启动httpd
systemctl start httpd && systemctl enable httpd;
systemctl status httpd;
显示绿色就是启动成功
(3). 关闭防火墙
systemctl stop firewalld && systemctl disable firewalld
systemctl status firewalld
显示灰色就是关闭成功
-
安装vimyum install vim -y
-
安装phpyum install php php-gd php-mysql -y
-
安装 mysql(1). 下载并安装mysql
yum install wget -y;
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm(这个链接是下载mysql的连接 可以自己更改为自己喜欢的mysql的版本下载链接);
yum localinstall -y mysql57-community-release-el7-8.noarch.rpm(安装mysql)
Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction 正在安装 : mysql57-community-release-el7-8.noarch 1/1 验证中 : mysql57-community-release-el7-8.noarch 1/1 已安装: mysql57-community-release.noarch 0:el7-8 完毕!
这样就是安装成功了;
(