Running Node.js in apache?

后端 未结 7 1050
予麋鹿
予麋鹿 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;
    
    0 讨论(0)
提交回复
热议问题