网络配置 主要文件:/etc/network/interfaces,这里是IP.网关.掩码等的一些配置: # This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5). # The loopback network interfaceauto loiface lo inet loopba
1.node 默认为development(开发)模式 启动node 时可以设置模式为生产模式 set NODE_ENV=production node app.js 2.设置node监听的端口 var port = normalizePort(process.env.PORT || '5000');//程序中这样设置,默认为5000端口 当命令台启动程序时如下设置,则端口配置为1234. set PORT=1234 node app.js