整理的一些常用的命令

– spring boot 挂起
输入日志

nohup java -jar amcm-0.0.1-SNAPSHOT.jar >log.log 2>&1 &

ps -ef|grep java 
查看状态   
kill -9 ***
结束

查看端口程序

lsof -i:9999

linux防火墙开关

1:查看防火状态

systemctl status firewalld

service iptables status

2:暂时关闭防火墙

systemctl stop firewalld

service iptables stop

3:永久关闭防火墙

systemctl disable firewalld

chkconfig iptables off

4:重启防火墙

systemctl enable firewalld

service iptables restart

5:永久关闭后重启

//暂时还没有试过

chkconfig iptables on

systemctl start firewalld
systemctl stop firewalld

 
systemctl start docking              #启动metricbeat服务
systemctl enable docking             #设置开机自启动
systemctl disable docking            #停止开机自启动
systemctl status docking             #查看服务当前状态
systemctl restart docking           #重新启动服务
systemctl list-units --type=service        #查看所有已启动的服务

日志打印 linux

tail -f  ****

开启端口

[root@localhost init.d]# firewall-cmd --zone=public --add-port=3306/tcp --permanent
success
[root@localhost init.d]# firewall-cmd --reload
success

更改模式命令:

systemctl set-default graphical.target由命令行模式更改为图形界面模式

systemctl set-default multi-user.target由图形界面模式更改为命令行模式

重启命令:
1、reboot
关机命令:
1、halt 立刻关机
2、poweroff 立刻关机

kafka
查看消费情况

./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group risk_asr_group

查看组

./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值