摘要: 1.列出所有端口的情况 $ netstat -ano 2.查看被占用端口对应的PID(例如:查看8081端口对应的PID) $ netstat -aon|findstr 8081 3.杀进程(例如:杀掉PID为8643的进程) $ taskkill /pid 8643 -f 阅读全文
posted @ 2021-02-28 21:37 neo_o 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.查看nginx状态 $ systemctl status nginx.service 2.启动nginx $ systemctl start nginx.service 3.停止nginx $ systemctl stop nginx.service 4.重载nginx $ systemctl 阅读全文
posted @ 2021-02-28 21:32 neo_o 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 1.配置所在目录 /etc/nginx/ 2.执行目录 /usr/sbin/nginx 3.模块所在目录 /usr/lib64/nginx/modules 4.默认站点目录 /usr/share/nginx/html 阅读全文
posted @ 2021-02-28 21:29 neo_o 阅读(5742) 评论(0) 推荐(0) 编辑
摘要: PM2是Node.js应用程序的生产流程管理器,内置负载均衡。它可以帮助您保持Node应用程序永久活动,重起这些node应用程序也不需要停机,并简化常见的系统管理任务。 1.安装pm2 $ npm install pm2 -g 2.更新pm2 $ pm2 update 3.启动进程 $ pm2 st 阅读全文
posted @ 2021-02-28 21:14 neo_o 阅读(688) 评论(0) 推荐(0) 编辑

愿你的生活只有诗和远方