02 2024 档案
摘要:1.查看相关端口进程: netstat -aon|findstr "端口号" 2.强制关闭上述命令查询出来的对应进程号 taskkill /T /F /PID 进程号
阅读全文
摘要:1.查看服务器端口情况:lsof -i:端口号 (lsof -i 需要 root 用户的权限)相关命令: lsof -i:8080 --查看8080端口占用 lsof abc.txt --显示开启文件abc.txt的进程 lsof -c abc --显示abc进程现在打开的文件 lsof -c -p
阅读全文
摘要:1.进入到系统服务文件夹下:cd /etc/systemd/system 2.创建服务文件:vim xxx.service [Unit]Description=XXX ServiceAfter=network.target [Service]Type=simpleExecStart=/home ja
阅读全文