
linux
文章平均质量分 94
十二月的雪7
不忘初心,方能始终!
展开
-
Ubuntu 网卡配置【记录】
virtual box 安装 Ubuntu 21 时 静态IP配置(桥接方式)lxp2@lxp2:~$ cat /etc/netplan/00-installer-config.yaml# This is the network config written by 'subiquity'network: ethernets: enp0s3: dhcp4: no addresses: - 192.168.1.105/24 gatewa.原创 2021-05-20 21:30:32 · 413 阅读 · 0 评论 -
shell脚本编译maven代码并且启动项目
#!/bin/bash#This can be replaced with your own executive program, other code does not need to be changedAPP_NAME=eureka-server.jar#usage() { echo "Usage:sh $0 [start|stop|restart|status]" ...原创 2020-04-04 13:16:19 · 762 阅读 · 0 评论 -
Linux系统shell脚本启动jar
#!/bin/bash#这里可替换为你自己的执行程序,其他代码无需更改APP_NAME=demo.jar#使用说明,用来提示输入参数usage() { echo "Usage: sh server.sh [start|stop|restart|status]" exit 1}#检查程序是否在运行is_exist() { pid=`ps -ef | gr...转载 2020-03-29 11:00:17 · 259 阅读 · 0 评论 -
Linux 环境下启动,停止 jar
1. 普通运行java -jar <name>.jar 运行程序,ctrl+c 停止运行2. 后台运行java -jar <name>.jar &后台运行,关闭终端,停止运行3. nohup命令运行 nohup java -jar XXX.jar & 当账户退出或终端关闭时,程序仍然运行。 注...原创 2020-03-29 10:47:27 · 2693 阅读 · 2 评论