1.服务器环境与配置⭐


服务器建议配置:2H4G或更高配置(建议最低配置不低于1H2G)
建议使用Linux系统(Centos/ Debian/ Ubuntu)进行搭建
建议系统:CentOS 7.x 版本
web环境:Nginx 1.x
PHP版本:php 7.4+
数据库版本:msyql 5.7

1.1Centos脚本宝塔Linux面板安装


yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

若电脑没有安装工具可选择宝塔官网进行在线安装面板。

1.2安装成功后登录宝塔面板


找到(软件商店—PHP7.4—设置—安装扩展)找到fileinfo、redis、swoole4扩展选择安装。

再点击禁用函数,找到proc_open点击删除。

扩展都安装完成后记得重启php服务

1.3点击软件商店搜索(进程守护管理器)进行安装


图片[1]-卡速售商城系统系统安装教程-张学林博客

2.⚙️ 安装程序


2.1️在宝塔里面点击(网站—添加站点—输入域名—创建数据库—提交)

图片[2]-卡速售商城系统系统安装教程-张学林博客

2.2上传系统安装程序压缩文件包,上传完成后解压文件

图片[3]-卡速售商城系统系统安装教程-张学林博客

2.3找到系统站点—设置—网站目录—运行目录—找到public—保存

图片[4]-卡速售商城系统系统安装教程-张学林博客

2.4点击伪静态—粘贴进去下方的代码 —保存

#PROXY-START/
location  ~* \.(php|jsp|cgi|asp|aspx)$
{
    proxy_pass http://127.0.0.1:26335;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
}
location /
{
    if (!-e $request_filename) {
         proxy_pass http://127.0.0.1:26335;
    }
    proxy_http_version 1.1;
    proxy_read_timeout 360s;   
    proxy_redirect off; 
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    add_header X-Cache $upstream_cache_status;
    #Set Nginx Cache
       add_header Cache-Control no-cache;
    expires 12h;
}
#PROXY-END/
图片[5]-卡速售商城系统系统安装教程-张学林博客

2.5找到之前安装的(进程守护管理器)—设置—添加进程守护—输入名称以及选择运行站点目录—启动命令php think swoole—确定

图片[6]-卡速售商城系统系统安装教程-张学林博客

2.6至此,访问网站域名即可进入网站安装流程,按后续步骤提示输入相应信息即可,祝您使用愉快。

图片[7]-卡速售商城系统系统安装教程-张学林博客
图片[8]-卡速售商城系统系统安装教程-张学林博客
© 版权声明
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容