You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
16 lines
363 B
cd /var/www/html/
|
|
node install http-server -g
|
|
|
|
#start http-server to start current directory serving via http://127.0.0.1:8080
|
|
http-server .
|
|
|
|
node install node-nanomsg
|
|
|
|
# test.js
|
|
#var nano = require('nanomsg');
|
|
#var sub = nano.socket('sub');
|
|
#var addr = 'ws://5.9.253.197:7785'
|
|
#sub.connect(addr);
|
|
#sub.on('data', function (buf) {
|
|
#console.log(String(buf));
|
|
#});
|
|
|