– 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