当前位置:网站首页>生产环境——
生产环境——
2022-04-23 14:00:00 【Kramer_149】
程序发布到生产环境常用命令
以火山云为例
连接到生产环境
1、连接开发机
2、通过开发机连接到生产环境
user_name、ip、密码 根据具体数据修改
ssh user_name@ip
输入密码
上传jar到生产环境
0、确保jdk版本,如果需要再确认数据库版本。
1、使用scp命令上传
(需要在2.txt所在目录)将本地2.txt文件上传到服务器的/home目录下,并且命名1.txt
scp 2.txt [email protected]:/home/1.txt
关闭/重启服务
0、再连接
1、查询并关闭原服务xxxx
(不关闭会有端口占用冲突)
ps -ef|grep xxxx
kill -9 pid号码
2、启动新服务
启动xxxx.jar
java -jar xxxx.jar
nohup java -Dspring.config.location=./application.yml -jar company_training-1.0.jar >app.log 2>&1 &
版权声明
本文为[Kramer_149]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_46199937/article/details/121953649
边栏推荐
- [code analysis (2)] communication efficient learning of deep networks from decentralized data
- 力扣刷题 101. 对称二叉树
- Wechat applet
- Spark入门基本操作
- Problems encountered in the project (V) understanding of operating excel interface poi
- Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
- Redis docker 安装
- Nacos+AspnetCore+Ocelot实战编码
- MySQL [read / write lock + table lock + row lock + mvcc]
- [code analysis (6)] communication efficient learning of deep networks from decentralized data
猜你喜欢
Dynamic subset division problem
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
freeCodeCamp----time_ Calculator exercise
About note 1
10g database cannot be started when using large memory host
The latest development of fed digital currency
Leetcode brush question 897 incremental sequential search tree
Kettle--控件解析
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
MySQL [read / write lock + table lock + row lock + mvcc]
随机推荐
Dynamic subset division problem
容差分析相关的计算公式
json反序列化匿名数组/对象
函数只执行第一次的执行一次 once函数
SPC简介
Analysis of unused index columns caused by implicit conversion of timestamp
Analysis and understanding of atomicintegerarray source code
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
Port occupied 1
[VMware] address of VMware Tools
What is the difference between blue-green publishing, rolling publishing and gray publishing?
Express中间件③(自定义中间件)
生成随机高质量符合高斯分布的随机数
MySQL [acid + isolation level + redo log + undo log]
FDFS start
Solution of discarding evaluate function in surprise Library
Modify the Jupiter notebook style
JS 力扣刷题 102. 二叉树的层序遍历
L2-024 tribe (25 points)
Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)