window
找java进程信息
-----------------------找占用端口并杀掉 netstat -ano | findstr 端口 tasklist | findstr 进程ID tasklist | findstr java.exe taskkill /f /t /im “进程id或者进程名称”
linux
----------------------找占用端口并杀掉 netstat -tunlp 用于显示 tcp,udp 的端口和进程等相关情况 netstat -tunlp | grep 8080 ps -ef | grep 进程ID kill -9 进程ID
top --系统资源
cat /proc/sys/kernel/threads-max --最大线程数
jmap -heap 进程号 --查看堆内存使用情况
-------------------------mysql数据库登录
su - mysql --打开mysql
mysql -hlocalhost -uchaos -pchaos --登录mysql
show processlist --查看当前运行sql
mysqladmin -uroot -proot shutdown --重启
-------------------------进程、端口
netstat -tunlp | grep 8080
ps -ef | grep "chaos-portal-server.jar" | grep -v grep | awk '{print $2}' --查看jar包启动的进程号
netstat -anp | grep xx --根据进程号查端口
netstat -nap | grep xx --根据端口查进程号
iostat -d -k 2 --监控设备IO负载情况
uname -m --查看cpu架构
cat /proc/version --查看操作系统信息



