node js +forever+ nginx 搭建高性能web服务器
来源:互联网 发布:淘宝网店如何装修 编辑:程序博客网 时间:2024/06/05 19:02
一、linux node js安装
yum install npm (安装node js运行环境)
node -v 查看node的版本
node app.js& 后台测试node是否运行
访问域名 测试
二、安装forever,使node作为服务运行在服务器后台
npm install forever -g (安装forever)
$ sudo npm install forever -g #安装$ forever start app.js #启动$ forever stop app.js #关闭$ forever start -l forever.log -o out.log -e err.log app.js #输出日志和错误
命令语法及使用 https://github.com/nodejitsu/forever
三、Nginx作为代理服务器转发node 请求
server { listen 80; server_name node.csdssd.com; index index.html index.htm index.php; #root /www/maitianshe/web/; location / { proxy_pass http://127.0.0.1:3100; } access_log /www/log/nginx/node.log;}
0 0
- node js +forever+ nginx 搭建高性能web服务器
- Nginx + PHP 搭建高性能web服务器
- 搭建高性能WEB服务器nginx搭建与配置
- Nginx+tomcat搭建高性能web服务器集群
- CentOS+Nginx+PHP+MySQL 搭建高性能的web服务器
- 高性能Web服务器 Nginx
- 高性能Web服务器 Nginx
- 高性能Web服务器 Nginx
- 高性能WEB服务器Nginx
- 高性能Web服务器 Nginx
- 高性能Web服务器 Nginx
- 高性能web服务器nginx
- 搭建高性能Web服务器Nginx,10倍于Apache---Nginx+Php(FastCgi模式)
- 搭建高性能Web服务器Nginx,10倍于Apache---Nginx+Php(FastCgi模式)
- Nginx,高性能的Web服务器
- Nginx高性能WEB服务器系列
- NGINX高性能Web服务器详解(读书笔记)
- Nginx搭建高可用的web服务器
- MES ROCKWELL FTPC 服务器开发综述
- 五种网络io模型
- 六日游
- Linux网络设置之虚拟机网络配置
- 【内存泄漏】Android内存泄漏---资源未关闭
- node js +forever+ nginx 搭建高性能web服务器
- 377. Combination Sum IV -Medium
- ES6中Json的与Map之间的转换
- springmvc分组校验
- qt 移植到2440
- nexus 上传文件至服务器
- 构建cocos2dx项目和打包
- Kubernetes 1.2 新功能介绍:Ingress 原理及实例
- Ubutu12.04 andoid studio安装过程和遇到的问题解决