SpringBoot 在CentOS7部署
来源:互联网 发布:淘宝怎么判定假冒商品 编辑:程序博客网 时间:2024/06/05 03:06
CentOS7 使用 Systemd 部署
1.增加服务文件
进入服务文件目录:
cd /etc/systemd/system/
创建服务文件:(文件名对应项目名,可自定义)
vim my-apps.service
2.编辑内容
[Unit]Description=appsAfter=syslog.target[Service]ExecStart=/usr/software/jdk1.8.0_131/bin/java -jar /var/apps/my-apps.jar[Install]WantedBy=multi-user.target
其它项目使用只要修改 Description
和 ExecStart
即可。
3.服务操作
启动服务
systemctl start my-apps
or
systemctl start my-apps.service
停止服务
systemctl stop my-apps
or
systemctl stop my-apps.service
服务状态
systemctl status my-apps
or
systemctl status my-apps.service
开机启动
systemctl enable my-apps
or
systemctl enable my-apps.service
项目日志
journalctl -u my-apps
or
journalctl -u my-apps.service
阅读全文
0 0
- SpringBoot 在CentOS7部署
- SpringBoot 在CentOS7部署
- 在centos7上部署kubernetes
- 在centos7上部署kubernetes
- 在centOS7下部署tpshop
- 在centos7上部署kubernetes
- 在Docker中部署Springboot应用
- springboot 在idea中实现热部署
- Redis在Centos7上的安装部署
- 在Centos7上部署安装RobotFramework
- 在Centos7下安装部署Zabbix3.2
- Redis在Centos7上的安装部署
- Redis在Centos7上的安装部署
- 在CentOS7上部署OpenStack 步骤详解
- 在CentOS7系统上部署nodejs
- Redis在Centos7上的安装部署
- 在CentOS7上部署OpenStack 步骤详解
- SpringBoot项目在IntelliJ IDEA中实现热部署
- session与cookie的区别
- Linux: 系统配置 crond 和 crontab(有图有代码有真相!!!)
- Python 可迭代元素拆包
- mysql
- shell中的${},##和%%的使用
- SpringBoot 在CentOS7部署
- 《android 测试当前摄像头是否能被调用和权限设置》
- 如何快速转载CSDN中的博客
- Hadoop--Hive安装指南
- MySQL连接
- arm-linux-gnueabihf-g++: error while loading shared libraries: libstdc++.so.6 no such file and ....
- 记笔记
- SSM框架下各个层的解释说明
- Ceres库和g2o库的使用