1.安装扩展

2.取消被禁用的函数

3.新建一个站点(通过域名或ip可以访问到)

4.定位到你的网站

cd /www/wwwroot/xxxx.com
5.删除默认文件



rm -rf index.html .htaccess 404.html
6.初始化项目
git init
会报错
Initialized empty Git repository in /www/wwwroot/xxxxxxxxx.com/.git/

安装一下git宝塔上安装git

7.设置项目仓库

git remote add origin https://gitee.com/huazhonghan/eapi-swoole


8.拉取项目

git pull origin master


9.运行文件

php eapiswoole start
提示
PHP Warning:  require(/www/wwwroot/xxxxx.com/vendor/autoload.php): failed to open stream: No such file or directory in /www/wwwroot/xxxxx.com/eapiswoole on line 2
10.vender文件加载

没有vender文件,运行下面的命令

composer install
提醒
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
运行下

/usr/bin/composer self-update
更换下php的默认版本(因为我的74禁用的函数老提示报错,才发现是54)
ln -sf /www/server/php/74/bin/php /usr/bin/php
查看php版本
php -v







点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
返回
顶部