UnhandledPromiseRejectionWarning: MongooseServerSelectionError: connect ECONNREFUSED ip:27017 solution: service mongod start verify: service mongod status
<VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ </VirtualHost> ssh -R 8080:localhost:3000 [email protected]
1- Go to services. 2- Configure website / configure SSL website 3- Choose Edit Directives. 4- Add this code (usually after closing the Directory tag) RewriteEngine on RewriteCond %{HTTP_HOST} =[domain]/[location] RewriteRule ^(?!/.well-known)(.*) [your-website]:[your-port][R] ProxyPass [proxy-url] [your-website]:[your-port] ProxyPassReverse [proxy-url] [your-website]:[your-port]
Error: node:events:505 throw er; // Unhandled ‘error’ event ^ Error: connect ECONNREFUSED your-ip:3306 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) Emitted ‘error’ event on Connection instance at: at Connection._notifyError (\node_modules\mysql2\lib\connection.js:236:12) at Connection._handleFatalError (\node_modules\mysql2\lib\connection.js:167:10) at Connection._handleNetworkError (\node_modules\mysql2\lib\connection.js:180:10) at Socket.emit (node:events:527:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -4078, code: ‘ECONNREFUSED’, syscall: ‘connect’, address: ‘your-ip’,…