代码拉取完成,页面将自动刷新
同步操作将从 aipaw/wookteam 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
此教程是在
Centos 7
下安装的宝塔面板。
请移步至宝塔官方 https://www.bt.cn/
请在宝塔面板内安装一下软件
安装完以后打开PHP
设置安装fileinfo
、Swoole4
扩展及删除禁用函数pcntl
、putenv
、proc_open
、popen
。
mysql
数据库(建议类型:utf8mb4
)wookteam.com
,根目录:/www/wwwroot/wookteam.com
)wookteam
项目文件上传至此站点目录下.env.example
为.env
并修改以下参数:DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=数据库名称
DB_USERNAME=数据库用户名
DB_PASSWORD=数据库密码
运行目录
改为public
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream swoole {
# Connect IP:Port
server 127.0.0.1:5200 weight=5 max_fails=3 fail_timeout=30s;
keepalive 16;
}
如下图:
location / {
try_files $uri @laravels;
}
location =/ws {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header Server-Protocol $server_protocol;
proxy_set_header Server-Name $server_name;
proxy_set_header Server-Addr $server_addr;
proxy_set_header Server-Port $server_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# "swoole" is the upstream
proxy_pass http://swoole;
}
location @laravels {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header Server-Protocol $server_protocol;
proxy_set_header Server-Name $server_name;
proxy_set_header Server-Addr $server_addr;
proxy_set_header Server-Port $server_port;
# "swoole" is the upstream
proxy_pass http://swoole;
}
cd /www/wwwroot/wookteam.com
composer install
php artisan key:generate
php artisan migrate --seed
yum install -y supervisor
systemctl enable supervisord
systemctl start supervisord
/etc/supervisord.d/wookteam.ini
,内容如下:[program:wookteam]
directory=/www/wwwroot/wookteam.com
command=php bin/laravels start -i
numprocs=1
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true
stdout_logfile=/www/wwwroot/wookteam.com/%(program_name)s.log
systemctl restart supervisord
到此安装完毕,希望你使用愉快!
注意:在升级之前请备份好你的数据!
composer update
php artisan migrate
systemctl restart supervisord
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。