08335 / hivui-platform-template
hivui平台项目模板
Newer
Older
hivui-platform-template / doc / 服务器操作.txt
caibinghong on 25 Mar 2022 杀死所有node 进程
# nginx 目录
/usr/local/nginx/sbin

# 4.110 进入docker
docker exec -it eap-hirun-dev /bin/bash
docker restart 24850dc4b328
# 启动配置好的pm2
pm2 resurrect



# pm2 路径 dump.pm2
cd /root/.pm2/



-----------------------------------------------------
方法一:查看进程列表(条件过滤)
ps -ef | grep nginx

方法二:直接查看进程pid
ps -C nginx -o pid

方法三:通过端口判断
netstat -anp | grep :80

方法四:使用lsof命令来查看80端口是否有程序在运行
lsof -i:80



1、查看nginx 是否启动
ps -ef | grep nginx

2、主程序的 nginx 配指定端口启动  8001
查看 ip 映射情况

3、



---------------------------
跨服务拷贝

rsync -auvz --exclude "backups" --exclude "history" /eap5.0/desktop/preview/0000221/cms/deploy/dist/0000221/cms root@192.168.4.193:/opt/eap5/cms/hiruntime/static/render/0000221/





-----------------------------
杀死所有node 进程
ps -ef|grep node|grep -v grep|cut -c 9-15|xargs kill -9