全网精品资源一站下载!

头像

【安装教程】区块链交易所源码-支持币币-合约-期权-挖矿-理财-申购等等更多功能

2022-11-28 15:45:23 来源:一曲源码   浏览(1508)   评论 ( 0 )   

php7.2

扩展

fileinfo 

伪静态

location / {

if (!-e $request_filename){

rewrite  ^(.*)$  /index.php?s=$1  last;   break;

}

}

location /wss {

    proxy_pass http://127.0.0.1:2348;

    proxy_http_version 1.1;

    proxy_set_header X-Forwarded-For

    $proxy_add_x_forwarded_for;

    proxy_set_header Upgrade $http_upgrade;

    proxy_set_header Connection "Upgrade";

    proxy_set_header X-Real-IP $remote_addr;

    rewrite /wss/(.*) /$1 break;

    proxy_redirect off;

}


计划任务

cd /www/wwwroot/www.wealthaddin.com

php start.php start


cd /www/wwwroot/www.wealthaddin.com

php think worker:gateway


cd /www/wwwroot/www.wealthaddin.com

php think worker:server


cd /www/wwwroot/www.wealthaddin.com

php think queue:work


cd /www/wwwroot/www.wealthaddin.com

php think worker restart


cd /www/wwwroot/www.wealthaddin.com

php think queue:restart


cd /www/wwwroot/www.wealthaddin.com

php think node


cd /www/wwwroot/www.wealthaddin.com

php think vendor:publish


重启行情

cd /www/wwwroot/www.wealthaddinfx.com

killall -9 php

php think worker:gateway -d


python3安装


wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz (也可以换成3.6.2版本,看自己的需要)

 

mkdir /usr/local/python3

 

tar -xvJf Python-3.6.8.tar.xz

 

cd Python-3.6.8

 

./configure --prefix=/usr/local/python3

(注:./configure --prefix=/usr/local/python3这句的作用就是将程序安装在/usr/local/python3这个目录下)

 

make && make install

(注:make是编译,make install是安装)

 

ln -s /usr/local/python3/bin/python3 /usr/bin/python3

(注: 创建软链接将 /usr/bin/python3指向/usr/local/python3/bin/python3)

 

安装setuptools,下载setuptools

wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26 或者 wget https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26 --no-check-certificate

 

tar -zxvf setuptools-19.6.tar.gz

 

cd setuptools-19.6

 

python3 setup.py build

 

python3 setup.py install

 

安装PIP,下载PIP:

wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb 或者 wget https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb --no-check-certificate

 

tar -zxvf pip-8.0.2.tar.gz

 

cd pip-8.0.2

 

python3 setup.py build

 

python3 setup.py install

 

设置软链接:

ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3


安装websocket

pip3 install websocket

pip3 install websocket-client

pip3 install redis


修改文件的数据库链接以及ssl证书目录指向

.env

bootstrap/cache/config.php



添加伪静态

location / {  

try_files $uri $uri/ /index.php$is_args$query_string;  

}  

安装

php7.2扩展 redis fileinfo exif intl

禁用函数删除 proc_open

计划任务

1

cd /www/wwwroot/网站目录/python

pkill python3

python3 main.py

2

cd /www/wwwroot/网站目录

php artisan websocket:client restart

3

cd /www/wwwroot/网站目录/public/vendor/webmsgsender

php start.php restart

4

cd /www/wwwroot/网站目录

php artisan queue:work

5

cd /www/wwwroot/网站目录

php artisan schedule:run