安装好系统后,配置好网络:
需要可以连接外网。

然后就可以通过YUM安装了:
yum install -y epel-release nodejs mongodb-server mongodb redis

安装完成后,可以通过命令【node】进入【Node.js】的Console操作:
Node

[root@netbackup-server script]# pwd
/script
[root@netbackup-server script]# ls
HelloWorld.js
[root@netbackup-server script]# cat HelloWorld.js
console.log(‘Hello wolrd, JavaScript.’);

[root@netbackup-server script]#
[root@netbackup-server script]# node HelloWorld.js
Hello wolrd, JavaScript.
[root@netbackup-server script]#

————————
Done。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装