Drupal 7 开发内部培训资料, 分头诗人

有用过Chatroom聊天室模块么?

赞成!
0
否决!

有用过Chatroom聊天室模块么?我装好之后提示这个错误是什么意思在报告里面的...因为这个错误导致我的聊天室模块不能用,,,请教怎么解决?

4 个回答

赞成!
0
否决!

Chat Room  drupal7 版本的后台是用Node.js 的,所以你要使用Node.js integration

赞成!
0
否决!

诗人,我后台以经装上了Nodejs(Node.js integration)这个模块并启用了,而且配置页面是这样的,可是错误报告里还是报上面提的那个错误。。。Node.js不是集成到Nodejs这个模块里了的么?!不是启用就可以了的么??还需配置什么???求助下诗人!!!

赞成!
0
否决!

Node.js integration
===================

This module adds Node.js integration to Drupal.

Setup
=====

1. Install Node.js.

1a. Install from a package manager:

https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

1b. Build from source on Ubuntu (and probably Debian):

NOTE: replace the 'x' in v0.8.x with the current latest stable version.

  sudo apt-get install build-essential git curl openssl libssl-dev
  mkdir -p ~/local/src
  cd ~/local/src
  git clone --branch v0.8.x git://github.com/joyent/node.git
  cd node
  ./configure
  make
  sudo make install

2. Install required Node.js modules with the Node Package Manager (NPM).

OPTIONAL: install node-gyp, so that the ws package is faster.

  npm install -g node-gyp

Make sure you are in the nodejs module directory - NPM needs the package.json
file that comes with the nodejs module to install the right modules.

  cd path/to/your/nodejs/module/directory
  npm install

3. Create a 'nodejs.config.js' file in your nodejs module directory.

Read the 'nodejs.config.js.example' file. A basic configuration can be as simple as:

settings = {
  host: '*',
  serviceKey: 'CHANGE ME',
  backend: {
    port: 80,
    host: 'CHANGE ME TO THE HOSTNAME OF YOUR DRUPAL SITE',
    scheme: 'http',
    basePath: '',
    messagePath: '/nodejs/message'
  },
  debug: true
};

Set debug to false when you are happy with your setup.

4. Run the node server with the command: node server.js

As long as you have 'debug: true' in your configuration file, you'll see lots of helpful messages.

赞成!
0
否决!

Ubuntu安装node.js前配置并启用node.js服务器,第一步去github上下载安装包,作者给了个Ubuntu下的例子,按照他的步骤一步步地做吧。