nodejs 安装 postgresql module

# npm -gd install node-gyp

# export PATH=$PATH:/usr/local/pgsql/bin

# npm -gd install pg

 

for test:

# export NODE_PATH=/usr/local/nodejs/lib/node_modules

# vi sender.js

var pg = require(‘pg‘);

console.log(‘pg has installed successfully‘);

# node sender

if no error, means it works ok.

nodejs 安装 postgresql module

上一篇:关于xargs,你可能不知道的


下一篇:gdb 命令总结