dongtan2603 2016-02-01 04:35
浏览 54

如何为Node.js,PHP和MySQL设置开发环境

I am working on a web app where some of the existing code is in PHP, but much of the new development is going to be in Node.js. The backend is MySQL. In the past I've used MAMP for the LAMP stack. However what would you suggest using as a local development environment for Node.js, PHP, & MySQL?

Thank you,

  • 写回答

2条回答 默认 最新

  • dongmei5168 2016-02-02 04:34
    关注

    You can Node server on any port you want which is available using Node Express module

    var app = require('express')();
    
    var listener = app.listen(<Available_Port>, function(){
        console.log('Listening on port ' + listener.address().port); 
    });
    

    MAMP apache will run on 80 port by default, from where your php scripts will gets executed and Mysql on port 3306 by default

    评论

报告相同问题?

悬赏问题

  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符