Linux涓嬪畨瑁卬ode鍙妌pm
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux涓嬪畨瑁卬ode鍙妌pm相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e6%a3%80%e6%b5%8b' title='妫€娴?>妫€娴?/a> reg 閰嶇疆鏂囦欢 start div load config try 杩炴帴
- Linux涓嬪畨瑁卬ode
銆€銆€1銆佽В鍘?/p>
銆€銆€$ tar zxf node-v8.9.0-linux-x64.tar.gz
銆€銆€2銆佺Щ鍔ㄥ埌鎸囧畾鐩綍
銆€銆€$ mv node-v8.9.0-linux-x64 /usr/local/node
銆€銆€3銆佸湪/usr/bin 鐩綍涓嬪缓绔嬭蒋杩炴帴 锛屽彉涓哄叏灞€
$ cd /usr/bin $ ln -s /usr/local/node/bin/node node $ ln -s /usr/local/node/bin/npm npm
銆€銆€4銆佽緭鍏ュ懡浠?node -v锛宯pm -v 妫€娴嬫槸鍚﹀畨瑁呮垚鍔?/p>
銆€銆€$ node -v
銆€銆€$ npm -v
銆€銆€5銆佸畨瑁卌npm
$ npm install -g cnpm --registry=https://registry.npm.taobao.org $ cd /usr/bin $ ln -s /usr/local/node/lib/node_modules/cnpm/bin/cnpm cnpm $ npm install npm run build & npm run start
npm config get registry // https://registry.npmjs.org/ ln -s /home/project/lib/node-v10/bin/node node ln -s /home/project/lib/node-v10/bin/npm npm ln -s /home/project/lib/node-v10/lib/node_modules/cnpm/bin/cnpm cnpm
銆€銆€#ps -ef |grep nginx 銆€銆€銆€銆€ 銆€銆€#妫€鏌ユ槸鍚﹀惎鍔?/p>
銆€銆€#netstat -lntup |grep 80 銆€銆€銆€銆€#妫€鏌ョ鍙d俊鎭?/p>
銆€銆€#nginx -t 銆€銆€銆€銆€銆€銆€銆€銆€銆€銆€ #娴嬭瘯鍚姩鏈嶅姟
銆€銆€#nginx -s reload 銆€銆€銆€銆€銆€銆€銆€ # 閲嶆柊杞藉叆閰嶇疆鏂囦欢
銆€銆€#nginx -s reopen 銆€銆€銆€銆€銆€銆€銆€# 閲嶅惎 Nginx
銆€銆€#nginx -s stop 銆€銆€銆€銆€銆€銆€銆€銆€ # 鍋滄 Nginx
以上是关于Linux涓嬪畨瑁卬ode鍙妌pm的主要内容,如果未能解决你的问题,请参考以下文章