Showing
1 changed file
with
11 additions
and
10 deletions
| @@ -18,16 +18,23 @@ | @@ -18,16 +18,23 @@ | ||
| 18 | > | 18 | > |
| 19 | - 进入target目录 | 19 | - 进入target目录 |
| 20 | cd target | 20 | cd target |
| 21 | -- 用scp命令把jar包上传到服务器,scp 文件名 用户名@服务器ip:上传路径 | 21 | + |
| 22 | +> | ||
| 23 | +- 用scp命令把jar包上传到服务器 | ||
| 24 | + scp 文件名 用户名@服务器ip:上传路径 | ||
| 22 | **\[scp BoxFishVote-1.0.jar root@114.55.0.135:/opt\]** | 25 | **\[scp BoxFishVote-1.0.jar root@114.55.0.135:/opt\]** |
| 26 | + | ||
| 27 | +> | ||
| 23 | - 输入服务器登陆密码,等到上传完毕 | 28 | - 输入服务器登陆密码,等到上传完毕 |
| 24 | 29 | ||
| 30 | + | ||
| 25 | - 建立软连接 | 31 | - 建立软连接 |
| 26 | 32 | ||
| 27 | > | 33 | > |
| 28 | - 用ssh登陆服务器 | 34 | - 用ssh登陆服务器 |
| 29 | **\[ssh root@114.55.0.135\]** | 35 | **\[ssh root@114.55.0.135\]** |
| 30 | 36 | ||
| 37 | + | ||
| 31 | > | 38 | > |
| 32 | - ln -s /路径/xxxx-x.x.jar /etc/init.d/自定义名字 | 39 | - ln -s /路径/xxxx-x.x.jar /etc/init.d/自定义名字 |
| 33 | **\[ln -s /opt/BoxFishVote-1.0.jar /etc/init.d/boxfish-vote\]** | 40 | **\[ln -s /opt/BoxFishVote-1.0.jar /etc/init.d/boxfish-vote\]** |
| @@ -39,20 +46,14 @@ | @@ -39,20 +46,14 @@ | ||
| 39 | - 启动 | 46 | - 启动 |
| 40 | 47 | ||
| 41 | > | 48 | > |
| 42 | -- service | 49 | + service boxfish-vote start |
| 43 | -**boxfish-vote** | ||
| 44 | -start | ||
| 45 | 50 | ||
| 46 | - 停止 | 51 | - 停止 |
| 47 | 52 | ||
| 48 | > | 53 | > |
| 49 | -- service | 54 | + service boxfish-vote stop |
| 50 | -**boxfish-vote** | ||
| 51 | -stop | ||
| 52 | 55 | ||
| 53 | - 重启 | 56 | - 重启 |
| 54 | 57 | ||
| 55 | > | 58 | > |
| 56 | -- service | 59 | + service boxfish-vote restart |
| 57 | -**boxfish-vote** | ||
| 58 | -restart |
-
Please register or login to post a comment