mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
8 lines
276 B
JavaScript
8 lines
276 B
JavaScript
var net = require('net');
|
|
|
|
var server = net.createServer(function (socket) {
|
|
socket.write('Welcome to the Telnet server of the process' + (process.env.NODE_APP_INSTANCE || 'must be run on pm2'));
|
|
}).listen(8888, function() {
|
|
console.log('Listening on port %s', 8888);
|
|
});
|