1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require('http').createServer(function (request, response) {
if (request.url == '/') {
response.write('<!DOCTYPE html>');
response.write('<html>');
response.write('<head>');
response.write('<title>Forever</title>');
response.write('</hezd>');
response.write('<body>');
response.write('<h1>Forever</h1>');
response.write('</body>');
response.write('</html>');
response.end();
} else {
error.error.error();
}
}).listen(52273, function () {
console.log('Server Running at http://127.0.0.1:52273');
});
| cs |
forever모듈로 서버를 실행시킬수 있다.
forever stop [pid]를 하면 서버를 stop시킴
댓글
댓글 쓰기