In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install node.js in the linux system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install node.js in the linux system".
Introduction to node.js
To put it simply, Node.js is a JavaScript running on the server side. Node.js is a platform based on the Chrome JavaScript runtime. Node.js is an event-driven JavaScript environment on the server side of Google. The V8 engine based on Google executes Javascript very fast and the performance is very good.
Steps for installing node.js on linux system
First of all, go to the official website to download the code, here we must pay attention to the installation of two kinds, one is the Source Code source code, the other is the compiled file. I just operate the compiled files in accordance with the installation of the online source code, resulting in a pit for a long time.
Pay attention to what files you download! The corresponding installation methods are different, dear.
(1) compiled documents
To put it simply, after decompression, node and npm already exist in the bin folder. If you enter the corresponding file and execute the command line, there is no problem at all, but it is not global, so set this to global.
Cd node-v0.10.28-linux-x64/binls./node-v
This is all right. You can choose the name of the node folder exactly where you want to put it. Then set the global:
Ln-s / home/kun/mysofltware/node-v0.10.28-linux-x64/bin/node / usr/local/bin/nodeln-s / home/kun/mysofltware/node-v0.10.28-linux-x64/bin/npm / usr/local/bin/npm
You put this path here / home/kun/mysofltware/ on your own, and you unzip the node file wherever you go.
(2) compiling through source code
The file you download this way is Source code, I don't like it very much. It's mainly trouble.
# tar xvf node-v0.10.28.tar.gz # cd node-v0.10.28 #. / configure # make # make install # cp / usr/local/bin/node / usr/sbin/ View the currently installed version of Node # node-v v0.10.28
(3) apt-get
Another way is the apt-get way of shell prompt, which I was fooled by before. It is strongly not recommended.
Sudo apt-get install nodejssudo apt-get install npm thank you for reading, the above is the content of "how to install node.js in the linux system". After the study of this article, I believe you have a deeper understanding of how to install node.js in the linux system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.