Written on
·
297
0
back 에서 나오는 에러인데
http , https 다 넣었습니다
0|app | Warning: connect.session() MemoryStore is not
0|app | designed for a production environment, as it will leak
0|app | memory, and will not scale past a single process.
0|app | Error: listen EACCES: permission denied 0.0.0.0:80
0|app | at Server.setupListenHandle [as _listen2] (net.js:1314:21)
0|app | at listenInCluster (net.js:1379:12)
0|app | at Server.listen (net.js:1465:7)
0|app | at Function.listen (/home/ubuntu/react-nodebird-aws/back/node_modules/express/lib/application.js:618:24)
0|app | at Object.<anonymous> (/home/ubuntu/react-nodebird-aws/back/app.js:69:5)
0|app | at Module._compile (internal/modules/cjs/loader.js:1085:14)
0|app | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
0|app | at Module.load (internal/modules/cjs/loader.js:950:32)
0|app | at Function.Module._load (internal/modules/cjs/loader.js:790:12)
0|app | at Object.<anonymous> (/home/ubuntu/react-nodebird-aws/back/node_modules/pm2/lib/ProcessContainerFork.js:33:23) {
0|app | code: 'EACCES',
0|app | errno: -13,
0|app | syscall: 'listen',
0|app | address: '0.0.0.0',
0|app | port: 80
0|app | }
Answer 1
0
저거 실행하실 때 user가 root인가요? ec2-user인가요? 일단 기존 프로세스는 sudo 없이 pm2 kill로 종료하신 후 앞으로 하시는 것만 sudo 붙여서 해보세요.