https://www.656463.com/wenda/ljdsysnginxconnectsb111ljbjj_167 #遇到的问题类似这个,但是我的是node.js环境,搜到的问题是php环境
https://blog.csdn.net/qq_43558459/article/details/110758289 #然后我按这位老铁的方法解决了
ss -lntp | grep 123 #发现端口没有起来
dokcer ps #发现容器没起来
docker start github #发现报错起不了
因为代码需要容器有wechat依赖
回滚代码到昨天能用的时候
docker start github #容器起来了
docker logs 容器名
#错误:无法找到模块'微信'
https://www.npmjs.com/package/wechat #下载地址
[root@asiatop106 logs]# npm clean cache
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
help, help-search, i, init, install, install-test, it, link,
list, ln, login, logout, ls, outdated, owner, pack, ping,
prefix, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, tag, team, test, tst, un, uninstall,
unpublish, unstar, up, update, v, version, view, whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/root/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@3.10.10 /usr/lib/node_modules/npm
[root@asiatop106 logs]# npm install
npm WARN prefer global jake@10.8.2 should be installed with -g
server-template@1.0.0 /data/node_projects/richsaassysv4/server
└─┬ wechat@2.1.0
├─┬ ejs@3.1.6
│ └─┬ jake@10.8.2
│ ├── async@0.9.2
│ └── filelist@1.0.2
├── wechat-crypto@0.0.2
└─┬ xml2js@0.4.17
└── xmlbuilder@4.2.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN server-template@1.0.0 No repository field.
[root@asiatop106 logs]# docker restart github
github
然后再到nginx代理服务器看下日志
tail -n 100 /usr/local/nginx/logs/github.com_error.log
tail -n 100 /usr/local/nginx/logs/github.com_access.log
以及真实服务器,宿主机看下日志
tail -n 100 /data/node_projects/github/server/logs/info.2021-09-24-17.log