在centOS上安装Node
来源:互联网 发布:物流管理信息系统软件 编辑:程序博客网 时间:2024/05/28 09:32
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server
Install a Package from the Node Site
Another option for installing Node.js on your server is to simply get the pre-built packages from the Node.js website and install them.
You can find the Linux binary packages here. Since CentOS 7 only comes in the 64-bit architecture, right click on the link under "Linux Binaries (.tar.gz)" labeled "64-bit". Select "Copy link address" or whatever similar option your browser provides.
On your server, change to your home directory and use the wget
utility to download the files. Paste the URL you just copied as the argument for the command:
cd ~wget http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz
Note: Your version number in the URL is likely to be different than the one above. Use the address you copied from the Node.js site rather than the specific URL provided in this guide.
Next, we will extract the binary package into our system's local package hierarchy with the tar
command. The archive is packaged within a versioned directory, which we can get rid of by passing the --strip-components 1
option. We will specify the target directory of our command with the -C
command:
sudo tar --strip-components 1 -xzvf node-v* -C /usr/local
This will install all of the components within the /usr/local
branch of your system.
You can verify that the installation was successful by asking Node for its version number:
node --version
v0.10.30
The installation was successful and you can now begin using Node.js on your CentOS 7 server.
- 在centOS上安装Node
- 终于在阿里云centos上安装了node.js
- express 在centos上运行(安装node)
- CentOS上安装Node.js--v8.9.0
- 在CentOS 7上安装Node.js的4种方法(包含npm)
- CentOS 7部署Node.js+MongoDB:在VPS上从安装到Hello world
- 在Centos上安装git
- 在centOS 上安装git
- 在centos上安装rpmbuild
- 在CentOS上安装Git
- 在CentOS上安装Git
- 在centos上安装raid1
- 在CentOS上安装Git
- 在centos上安装lksctp
- 在CentOS上安装oralce10G
- 在CentOS上安装Git
- 在CentOS上安装Git
- 在CentOS上安装Git
- 1-Azkaban用户登录篇
- File***could only be replicated to 0 nodes instead of minReplication (=1)
- 不同软件中的数据类型
- 学习回顾mysql常用函数(1)
- 一次百度内存泄漏定位
- 在centOS上安装Node
- Fiddler抓取手机端APP接口数据
- Oracle分页的实现方式
- Redis学习-2:Linux安装Redis
- 从JDK源码看InputStream
- (三)JAVA菜鸟养成记--抽象类和接口
- nginx安装 打开php文件自动下载的问题
- java使用反射将json对象转换为java对象
- Redis学习-3:Redis中的五种数据结构