当前位置:网站首页>生产环境——
生产环境——
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 (3)] communication efficient learning of deep networks from decentralized data
- crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
- Neuron and neural network
- 金蝶云星空API调用实践
- Dynamic subset division problem
- Using Jupiter notebook in virtual environment
- JS force deduction brush question 102 Sequence traversal of binary tree
- 1256:献给阿尔吉侬的花束
- Redis docker 安装
猜你喜欢
低频量化之明日涨停预测
Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
专题测试05·二重积分【李艳芳全程班】
Leetcode | 38 appearance array
3300万IOPS、39微秒延迟、碳足迹认证,谁在认真搞事情?
1256:献给阿尔吉侬的花束
MySQL index [data structure + index creation principle]
Leetcode brush question 𞓜 13 Roman numeral to integer
freeCodeCamp----arithmetic_ Arranger exercise
Special test 05 · double integral [Li Yanfang's whole class]
随机推荐
[code analysis (3)] communication efficient learning of deep networks from decentralized data
Oracle alarm log alert Chinese trace and trace files
记录一个奇怪的bug:缓存组件跳转之后出现组件复制
Crontab timing task output generates a large number of mail and runs out of file system inode problem processing
Express②(路由)
The art of automation
Building MySQL environment under Ubuntu & getting to know SQL
[code analysis (6)] communication efficient learning of deep networks from decentralized data
Jiannanchun understood the word game
Wechat applet
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
编程旅行之函数
Small case of web login (including verification code login)
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
Leetcode? The first common node of two linked lists
Dynamic subset division problem
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)
leetcode--380.O(1) 时间插入、删除和获取随机元素
Technologie zéro copie