sentinel相关

  • 后台执行
nohup java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.7.1.jar > nohup.out 2>&1 &
  • 命令解析
nohup:
	nohup 是 "no hang up" 的缩写,表示即使用户注销或关闭终端,程序也会继续运行。
	它会忽略挂起信号(SIGHUP),使程序不会因终端关闭而终止。
java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.7.1.jar:
	这是启动Java应用程序的命令。
	-Dserver.port=8080:设置服务器监听端口为8080。
	-Dcsp.sentinel.dashboard.server=localhost:8080:配置Sentinel Dashboard的地址和端口为localhost:8080。
	-Dproject.name=sentinel-dashboard:设置项目名称为sentinel-dashboard。
	-jar sentinel-dashboard-1.7.1.jar:指定要运行的JAR文件为sentinel-dashboard-1.7.1.jar。
> nohup.out 2>&1:
	> nohup.out:将标准输出重定向到nohup.out文件中。
	2>&1:将标准错误(文件描述符2)重定向到标准输出(文件描述符1),即所有错误信息也会被写入nohup.out文件。
&:
	将命令放到后台执行。这样可以在不阻塞当前终端的情况下启动程序。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值