如果执行下面的node.js安装出现如下错误
/home/vlance/www/node-v0.6.10/wscript:374: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
执行下面命令
sudo apt-get install libssl-dev
ubuntu下安装node.js error could not configure a cxx compiler configure
需要安装g++/c++
命令行中输入:
sudo apt-get install build-essential libssl-dev curl git-core
再输入下面的命令就可以了
./configure
make
sudo make install
node.js环境安装
https://github.com/joyent/node/wiki/Installation
1.下载
wget http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz
2.解压
tar zxvf node-v0.6.10.tar.gz
3.配置和安装
cd node-v0.6.10
./configure --prefix=/opt/node
make
make install
4.配置全局变量
#vi /etc/profile
export PATH=$PATH:/opt/node/bin
# source /etc/profile ##使环境变量生效
redis安装
$ wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz
$ tar xzf redis-2.4.17.tar.gz
$ cd redis-2.4.17
$ make
修改配置文件
$ cd redis-2.4.17
$ vi redis.conf
修改
daemonize yes
bind 172.17.187.69
requirepass 12345
保存
$ cd redis-2.4.17
$ cd src
$ ./redis-server ../redis.conf
查看进程
netstat -npl|grep 6379
安装php的redis扩展
https://github.com/nicolasff/phpredis/downloads
下载扩展包
nicolasff-phpredis-2.2.2-48-g7dfac44.tar.gz
查看目录 whereis phpize
/usr/bin/phpize
./configure
make
sudo make install
如果没有phpize扩展
apt-get install php5-dev
就有了
安装nochat
$ cd nochat
修改配置文件
/home/vlance/www/NoChat/config.js
redis 端口号,地址,密码
redis: [6379, '172.17.187.37','12345'],
memcached 地址:端口号
memcached: ['172.17.187.37:12000']
安装依赖包
$ npm install
启动
$ node app
nohup node app.js > nochat.log &
php客户端
/home/vlance/www/vlance/themes/default/js/chat/webim.js
修改连接地址
var HOST = "http://172.17.187.37"
svn状态查看
netstat -npl|grep 3690
svnserve -d -r /home/vlance/svn-repos --listen-host 192.168.0.57 启动svn
关闭
killall svnserve
memcached 启动
/usr/bin/memcached -d -m 10 -u vlance -p 12000 -c 256 -P /tmp/memcached.pid
查看
netstat -npl|grep 12000
ps -ef |grep memcached
redmine启动
cd /opt/redmine-1.4
./redmine start
查看
netsat -npl|grep 3000
分享到:
相关推荐
文件中 1、outputFs.js为读写数据自定义库。 2、outputRedis.js为保存值的方法。 3、outputRedisWithKey.js为保存键值对的方法。
在安装好redis和nodejs后 配置config js 执行: $ node index js 启动服务 入队: 1 默认队列 http: 127 0 0 1:8000 put data 入队内容 2 自定义队列 http: 127 0 0 1:8000 postPut post方式提交json串 {"...
nodejs-redis-cluster redis3.0 的 nodejs 扩展,支持基于 nodejs npm redis url 的集群: : 更改日志 当我们向 redis 集群的一个节点发送命令时,我们可能会收到类似“ERR: MOVED 111 127.0.0.1:6379”的返回错误...
项目:使用NodeJs + Redis(BDA NoSQL)+ Docker + Bull在后台创建作业该项目的目的是使用NodeJS + Redis(BDA NoSQL)在异步后台创建作业,并具有注册用户(带有名称和电子邮件)的功能,其中将发送电子邮件以生成...
程序在nodemq文件夹下 1 默认队列 ... 2 自定义队列 ... 获取队列内容: ...http://127.0.0.1:8000/getList queueName">一个...在安装好redis和nodejs后 配置config js 执行: $ node index js 启动服务 入队: 1 默认队列
nodejs安装及环境配置
本文实例讲述了nodejs使用redis作为缓存介质实现的封装缓存类。分享给大家供大家参考,具体如下: 之前在node下使用redis作为缓存介质,对redis进行了一层封装 First: 安装npm包 redis const redis = require('...
多客户端聊天使用 nodeJS 和 Redis 的多客户端聊天服务器
NodeJS,Redis和MongoDB的Vagrant和Puppet配置 使用木偶进行流浪汉配置以使用Ubuntu Server 14.04,Nodejs / Redis / MongoDB创建虚拟机 安装: 安装无业游民 安装虚拟 克隆存储库git clone git://github....
NodeJs-Redis缓存路由 Redis + Node.js项目展示了如何在单个路由中使用缓存服务。 该路由负责使用Github API获取给定github用户名的存储库数量。 服务器将首先使用中间件功能检查用户名是否存在于redis db中,然后以...
learning-nodejs-redis-2 学习NodeJS Redis 2
基于 Nodejs\MySql\Redis\Traefix\NuxtJS 等技术。线上线下结合,拉新与落地一气合成,后台管理系统中,完善的包含游戏规则、优惠卷发放、微信会员验证、卡劵兑换、礼品线下扫码、用户管理、运营数据等。 Install ...
NodeJS-Redis-Simple-set-get-api 简单获取-由Redjs在Node.js中设置
Dockerblog 运行容器 docker-compose up --build -d 默认管理界面 路径: /admin 用户名: admin 密码: admin
nodejs和我们的redis和reids-cache学习 redis的散列、set集合、list集合、有序集合的CURD redis-cache操作 缓存 Tools Created with (, ) Nodeclipse is free open-source project that grows with your ...
“原始”是一种过于简化的聊天,支持多房间以及基于 nodejs 和 redis 的聊天历史。 演示: : 如何使用在应用程序根中: $ npm install$ nodejs .并将浏览器指向http://localhost:6001 。 或者,通过提供PORT变量来...
余烬聊天使用 NodeJS 和 Redis 的示例 ember 聊天应用程序。 Ember 实现它是什么? 这是一个用于学习目的的简单 Ember 应用程序。 它使用 Ember 作为前端客户端,使用 NodeJS 在后端使用 Redis。 Ember 应用程序使用...
本文实例讲述了node.js中 redis 的安装和基本操作。分享给大家供大家参考,具体如下: 一、win下安装redis https://github.com/MicrosoftArchive/redis/releases 下载Redis-x64-3.2.100.zip,然后解压,放到自定义...