Skip to content

Commit 2b57f42

Browse files
authored
Merge pull request #18 from 49bitquant/master
Add changed shell files
2 parents 4ce7af6 + deb58c1 commit 2b57f42

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ configuration, then save the file.
8989
- scp scp binance_grid_trader.zip ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu
9090
- pwd
9191
- mv # 移动或者剪切文件
92-
- ps -ef | grep main.py # 查看进程
93-
- kill 进程id # 杀死当前进程
92+
- sh stop.sh # 杀死当前进程
9493

9594
## 部署
9695
直接把代码上传到服务器, 通过scp命令上传
@@ -113,11 +112,8 @@ configuration, then save the file.
113112
执行运行脚本
114113
> sh start.sh
115114
116-
查看程序运行的id
117-
> ps -ef | grep main.py
118-
119115
杀死进程, 关闭程序
120-
> kill <进程ID>
116+
> sh stop.sh
121117
122118
**linux服务器指令和网格策略实盘部署过程如下**
123119
[https://www.bilibili.com/video/BV1mK411n7JW/](https://www.bilibili.com/video/BV1mK411n7JW/)
@@ -130,6 +126,3 @@ configuration, then save the file.
130126
可以添加我的微信,如果你有什么量化问题、python学习、课程咨询等方面的问题,都可以咨询我。
131127

132128
![51bitquant个人微信](https://upload-images.jianshu.io/upload_images/814550-f83c8302f2c4e344.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
133-
134-
135-

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nohup python -u main.py > grid_nohup.out 2>&1 &
1+
nohup python -u main.py > grid_nohup.out 2>&1 & echo $! > process.pid

stop.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kill `cat process.pid`

0 commit comments

Comments
 (0)