Ali cloud server CentOS install the latest version node.js
Blog Description
Information in the article involved from the Internet and organize personal conclusion, meaning that the individual learning experience and summary, what if infringement, please contact me to delete, thank you!
Brief introduction
Found that I really love to write blog, forgive my obsessive-compulsive disorder, but it is for his repeated memory is a great advantage of learning the way of pain and happiness, refueling, Olivier to!
Return to the topic, to install our node.js on Ali cloud server, our server is using CentOS, we confirm our title it.
Remote Ali cloud
This time I use a Mac, the software is FinalShell, do not ask me how can there be so many computer systems, and asked that like to engage in (virtual machine, of course, the money to engage in real machine)!
Just look at the map it successfully connected
What, like a password, connect to the server or something, we all, the whole so much useless bells and whistles.
Download node.js
Of course, obsessive-compulsive disorder, I definitely have to download the latest version of it, any problems encountered back then came the thousand million, not afraid, is to learn the attitude like this thing. (I'm not Guangxi brother!)
This latest version, we need to open a Web site:
https://nodejs.org/en/download/
This can be downloaded yo
We choose the version number, address it to climb down, we use the command to install, of course, can be downloaded directly down.
Download the address below
https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
installation
Download Command
wget https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
Decompression
tar xf node-v12.16.1-linux-x64.tar.xz
Into the extracted directory
cd node-v12.16.1-linux-x64/
View command execution node version
./bin/node -v
Create a directory linux software
We can put our download some software into our software from a directory defined inside
Creating software directory in / usr directory, we just extracted the files renamed node, put our usr / software directory
Create a soft link
In the bin directory under the node contains the node, npm commands, we can use the ln command to set the soft link
ln -s /usr/software/node/bin/npm /usr/local/bin/
ln -s /usr/software/node/bin/node /usr/local/bin/
Euler!
thank
Rookie Tutorial
And a hardworking own