链接:https://www.youtube.com/watch?v=oGbLL1_0q64
yum install gcc-c++ openssl-devel make -y
cd /tmp
curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs
npm install -g express-generator
useradd username
passwd username
mkdir first_project
cd first_project/
express
npm install
node ./bin/www &
查看进程那些:netstat -tlpn
如果关掉就是kill端口:sudo kill $(sudo lsof -ti :3000)
or
express expressproject
cd expressproject
npm install
[email protected] start /exampleuser/expressproject
node ./bin/www
比如查看express的dome 192.0.0.1:3000
如果按照npm失败应该事权限啥的那些问题
sudo yum install npm
标签:www,sudo,nodejs,express,centos7,yum,install From: https://www.cnblogs.com/hechunfeng/p/17774432.html