Running Node.js in apache?

后端 未结 7 1041
予麋鹿
予麋鹿 2020-11-28 02:41

We have an Apache Webserver installed on a machine which also serves pages using Perl.

For a project I\'ve decided to use Node.js instead of Perl/Ruby. Just wonderin

7条回答
  •  有刺的猬
    2020-11-28 03:08

    You can always do something shell-scripty like:

    #!/usr/bin/node
    
    var header = "Content-type: text/plain\n";
    var hi = "Hello World from nodetest!";
    console.log(header);
    console.log(hi);
    
    exit;
    

提交回复
热议问题