Skip to content

wptad/nodejs-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e5ccc4c · Mar 6, 2020

History

95 Commits
Nov 3, 2013
Oct 25, 2014
Aug 7, 2014
Nov 15, 2013
Jun 3, 2014
Apr 26, 2014
May 3, 2014
Nov 3, 2013
Nov 3, 2013
Oct 1, 2014
Mar 6, 2020
Dec 8, 2014
Feb 21, 2014
Mar 22, 2014
Nov 3, 2013
Jun 3, 2014
Apr 4, 2014
Feb 17, 2014
Dec 11, 2018
Dec 10, 2014
Nov 3, 2013
Mar 22, 2014
Nov 3, 2013
Aug 27, 2014
May 14, 2015
May 14, 2014
Dec 18, 2014
May 23, 2014
Nov 3, 2013
Jul 4, 2014
Mar 26, 2014
Nov 3, 2013
Nov 3, 2013
Sep 30, 2014
Nov 3, 2013

Repository files navigation

#Nodejs stuff

##install

  • For Debian Wheezy, your best bet is to compile node by yourself:
 sudo apt-get install python g++ make checkinstall fakeroot
 src=$(mktemp -d) && cd $src
 wget -N http://nodejs.org/dist/node-latest.tar.gz
 tar xzvf node-latest.tar.gz && cd node-v*
 ./configure
 sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
 sudo dpkg -i node_*
sudo apt-get install python g++ make checkinstall
mkdir ~/src && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
checkinstall #(remove the "v" in front of the version number in the dialog)
sudo dpkg -i node_*

  • Uninstall:
sudo dpkg -r node

  • In case you get a permission denied on the node executable, an alternative path might be:
umask 0022
./configure
make
checkinstall -D --umask 0022 --reset-uids --install=no
dpkg -i node_*.deb

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

http://www.slideshare.net/sh1mmer/writing-robust-nodejs-applications

debug

console.log()
console.error()
console.warn()
console.trace()

#node-inspector

  • install npm install -g node-inspector
node --debug server.js 

- stop at first line when app start

node --debug-brk  app.js

node-inspector
   info  - socket.io started
visit http://0.0.0.0:8080/debug?port=5858 to start debugging

#Forever Service

sudo forever start -a -l /tmp/log.log -e /tmp/err.log -c '/usr/local/bin/node --max-old-space-size=16384' /nodejs/server.js

About

nodejs management note

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published