linux部署若依(ruoyi-cloud)项目常用命令

萨瓦迪卡5年前 (2021-06-18)RuoYi-Cloud 2863

1.查看进程

ps -aux | grep java

查看某端口占用的线程: netstat -nlp | grep 端口号

netstat -nlp | grep :8084

查看某jar包的进程号

ps -ef | grep xxx.jar

2.杀死进程

kill -9 24343

3.启动jar包

nohup java -jar shareniu.jar &

nohup 意思是不挂断运行命令,当账户退出或终端关闭时,程序仍然运行.且所有输出被重定向到nohup.out的文件中


4.nacos启动

Linux/Unix/Mac

启动命令(standalone代表着单机模式运行,非集群模式):

sh startup.sh -m standalone


如果您使用的是ubuntu系统,或者运行脚本报错提示[[符号找不到,可尝试如下运行:

bash startup.sh -m standalone


Windows

启动命令(standalone代表着单机模式运行,非集群模式):

startup.cmd -m standalone

5.关闭nacos服务器

Linux/Unix/Mac

sh shutdown.sh


Windows

shutdown.cmd


或者双击shutdown.cmd运行文件。

6.前端打包命令

npm run build:prod



本文原创,转载必追究版权。

分享给朋友:

相关文章

每次开机checking file system on d

 解决方案:点击左下角(开始)- (运行)输入(CMD)回车 - 进入CMD界面- 输入(d:)回车 - 输入(chkdsk /f)中间有空格。回车,出现提示按Y键,完成后,重启一次会检...

使用Myeclipse 8.5开发基于JAX-WS的Web service实例

 本文为Web service 开发入门篇,主要介绍在Myeclipse 8.5环境下开发Web service的服务程序和客户端程序的基本流程。 在Weblogic 11g...

freemarker 判断日期变量为空处理 及InvalidReferenceException异常处理

at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98);InvalidR...

freeMarker Jfinal 获取session里的值

问题:freeMaker session取值的常用格式都试过 session["xxx"],session.xxx 直接xxx 都取不出来?????解决:JFinal与Struts...

SSH重启linux服务器

[root@centos6 ~]# sh stop.shsh: stop.sh: No such file or directory[root@centos6 ~]# ps -ef|grep java...

js/jquery 日历控件及实例下载

js/jquery 日历控件及实例下载

实现日历控件效果:页面:<link href="${base}/resource/${profile.path}/css/lhgcalendar.css" rel="...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。