read.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ###########环境依赖
  2. nginx
  3. mysql
  4. ###########部署步骤
  5. 1. 新建目录
  6. mkdir -p /data/macoin/goprojects/bin
  7. 2. 安装nginix,并修改/etc/nginx/sites-available/default:
  8. server {
  9. listen 9090 default_server;
  10. listen [::]:9090 default_server ipv6only=on;
  11. root /data/macoin/goprojects/bin/fzmnew;
  12. index index.html index.htm;
  13. server_name localhost;
  14. location / {
  15. try_files $uri $uri/ =404;
  16. }
  17. server {
  18. listen 8080;
  19. listen [::]:8080 ipv6only=on;
  20. server_name localhost;
  21. root /data/macoin/goprojects/bin/buff;
  22. index index.html index.htm;
  23. location / {
  24. try_files $uri $uri/ =404;
  25. }
  26. }
  27. 3. 安装mysql
  28. 新建数据库tick_server,fzmnewdb;
  29. 导入tick_server数据库表:use tick_server; source tick_server.sql;
  30. 导入fzmnewdb数据库表:use fzmnewdb; source fzmnewdb.sql;
  31. 4. 启动服务器:
  32. nohup ./wpt.sh > wpt.out 2>&1 &
  33. nohup ./wps33.sh > wps33.out 2>&1 &
  34. nohup ./ts.sh > ts.out 2>&1 &
  35. nohup ./ds.sh > ds.out 2>&1 &
  36. 5. 在/etc/rc.local里添加如下内容:
  37. cd /data/macoin/goprojects/bin
  38. nohup ./wpt.sh > wpt.out 2>&1 &
  39. nohup ./wps33.sh > wps33.out 2>&1 &
  40. nohup ./ts.sh > ts.out 2>&1 &
  41. nohup ./ds.sh > ds.out 2>&1 &
  42. ###########目录结构描述
  43. ├── datasourceserver
  44. ├── datasource.json
  45. ├── ds.sh
  46. ├── tickserver
  47. ├── mkconf.json
  48. ├── ts.sh
  49. ├── webproxys33
  50. ├── webproxys.json
  51. ├── wps33.sh
  52. ├── webproxyt
  53. ├── webproxyt.json
  54. ├── wpt.sh
  55. ###########V1.0.0 版本内容更新
  56. 1. 新功能 aaaaaaaaa