技术栈
开发语言 php
应用服务器 nginx/apache
数据库 mysql

项目部署前准备 mysql nginx php
在linux中输入命令查看是否安装
ps -aux | grep mysql
ps -aux | grep nginx
ps -aux | grep php
输入以下命令查看运行状态
systemctl status nginx
systemctl status mysqld
systemctl status php*
systemctl start 服务名
systemctl stop 服务名
systemctl status 服务名 状态
systemctl restart 服务名
systemctl disable 服务名 禁用
1 保证环境是好的,LNMP已安装,并且可以运行
2 步骤 a把项目包上传到服务器指定的目录 rz 只能用于远程连接工具
b解压,给这个解压后的文件夹权限
c修改配置,替换配置 rz上传nginx1.conf配置文件
d重启服务器
e初始化数据库,新建商品数据
f 访问一下页面.
