上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 125 下一页
摘要: mac lsof -i:8080 nodejs 项目,启动初问题了,终断后,老出现,端口占用启动不了的情况 linux 1.也可以用 lsof -i:端口号 发现有的linux服务器不支持lsof netstat -ntlp | grep 端口号 红色箭头指,为进程pid 关掉进程:kill -9 阅读全文
posted @ 2022-11-04 17:29 盘思动 阅读(55) 评论(8) 推荐(0) 编辑
摘要: ### mac * 恢复备份到mac数据库 我实测:自己连接不要账户密码,但是备份需要加:-u xxxx -p xxxx ``` mongorestore -h 127.0.0.1:27017 --authenticationDatabase=xzsp ~/Downloads/xzsp/xzsp_2 阅读全文
posted @ 2022-11-04 10:20 盘思动 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 多数是权限问题 root /home/jd/code/dapingdist; 这里要从home >jd >code ,从外向内,一层层排查,是否有可读权限 1.权限配置不正确 这个是nginx出现403 forbidden最常见的原因。 为了保证文件能正确执行,nginx既需要文件的读权限,又需要文 阅读全文
posted @ 2022-11-03 10:15 盘思动 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: cd nginx-1.19.9 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module make 复制 nginx-1.19.9/objs/nginx 到 /usr/loc 阅读全文
posted @ 2022-11-02 20:52 盘思动 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 跳板机cmd命令记录 net start "IP Helper" 请求的服务已经启动 netsh interface portproxy add v4tov4 listenport=8080 connectaddress=10.202.150.83 connectport=8080 netsh in 阅读全文
posted @ 2022-11-02 19:26 盘思动 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 操作linux,进程取消中发现ctrl+c无法取消,就用了ctrl+z,结果发现进程端口号还占用的情况 发现ctrl+z,并不是取消,只是隐藏挂起; 可以使用ctrl + \,注意英文输入状态下,也可以取消; ctrl+z(挂起)、ctrl+c(中断)、ctrl+\(退出)和ctrl+d(EOF)的 阅读全文
posted @ 2022-11-02 18:32 盘思动 阅读(362) 评论(0) 推荐(0) 编辑
摘要: netstat -anlp | grep :8080 阅读全文
posted @ 2022-11-02 16:16 盘思动 阅读(33) 评论(1) 推荐(0) 编辑
摘要: $ mv mongodb-linux-x86_64-3.0.6/ /usr/local/mongodb 解压 进入mongodb 创建data,logs,logs/mongodb.log ps aux | grep mongodb 查看是否有已经启动的进程,防止重复启动失败 因用 ./bin/mon 阅读全文
posted @ 2022-11-01 16:35 盘思动 阅读(118) 评论(0) 推荐(0) 编辑
摘要: ctrl + z 试试,终止命令执行 不行,只是隐藏 ctrl + \ 可以退出 阅读全文
posted @ 2022-11-01 16:13 盘思动 阅读(192) 评论(0) 推荐(0) 编辑
摘要: PM2 是带有内置负载平衡器的 Node.js 应用程序的生产过程管理器。可以利用它来简化很多 Node 应用管理的繁琐任务,如性能监控、自动重启、负载均衡等。 安装部署 1、我们一般会把 pm2 安装到全局: npm install pm2 -g pm2 -v 查看安装成功否 2、安装window 阅读全文
posted @ 2022-10-31 11:34 盘思动 阅读(1650) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 125 下一页