1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- ###########环境依赖
- nginx
- mysql
-
- ###########部署步骤
- 1. 新建目录
- mkdir -p /data/macoin/goprojects/bin
-
-
- 2. 安装nginix,并修改/etc/nginx/sites-available/default:
- server {
- listen 9090 default_server;
- listen [::]:9090 default_server ipv6only=on;
- root /data/macoin/goprojects/bin/fzmnew;
- index index.html index.htm;
- server_name localhost;
- location / {
- try_files $uri $uri/ =404;
- }
- server {
- listen 8080;
- listen [::]:8080 ipv6only=on;
- server_name localhost;
- root /data/macoin/goprojects/bin/buff;
- index index.html index.htm;
- location / {
- try_files $uri $uri/ =404;
- }
- }
-
- 3. 安装mysql
- 新建数据库tick_server,fzmnewdb;
- 导入tick_server数据库表:use tick_server; source tick_server.sql;
- 导入fzmnewdb数据库表:use fzmnewdb; source fzmnewdb.sql;
-
- 4. 启动服务器:
- nohup ./wpt.sh > wpt.out 2>&1 &
- nohup ./wps33.sh > wps33.out 2>&1 &
- nohup ./ts.sh > ts.out 2>&1 &
- nohup ./ds.sh > ds.out 2>&1 &
-
- 5. 在/etc/rc.local里添加如下内容:
- cd /data/macoin/goprojects/bin
- nohup ./wpt.sh > wpt.out 2>&1 &
- nohup ./wps33.sh > wps33.out 2>&1 &
- nohup ./ts.sh > ts.out 2>&1 &
- nohup ./ds.sh > ds.out 2>&1 &
-
-
-
- ###########目录结构描述
- ├── datasourceserver
- ├── datasource.json
- ├── ds.sh
- ├── tickserver
- ├── mkconf.json
- ├── ts.sh
- ├── webproxys33
- ├── webproxys.json
- ├── wps33.sh
- ├── webproxyt
- ├── webproxyt.json
- ├── wpt.sh
-
-
-
- ###########V1.0.0 版本内容更新
- 1. 新功能 aaaaaaaaa
|