In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, Xiaobian introduces in detail how to install nodejs in Linux system, with detailed content, clear steps and proper handling of details. I hope this article "how to install nodejs in Linux system" can help you solve your doubts.
Node.js is developed by Ryan Dahl. Node.js is a JavaScript running environment based on Chrome V8 engine. Node.js makes JavaScript a scripting language on a par with server-side languages such as PHP, Python, Perl, Ruby and so on. Installation environment
Native system: CentOS Linux release 7.5
Node.js:v12.18.1
Get the Node.js installation package
The download address of Node.js installation package and source code is https://nodejs.org/en/download/. You can choose the Node.js installation package you need according to different platform systems. Here you choose [LTS] Linux Binaries (x64).
Baidu Cloud backup download address: node-v12.18.1-linux-x64.tar.xz, extraction code: oibi
Install Node.jswget https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.xz on Linux / / download tar xf node-v12.18.1-linux-x64.tar.xz / / extract cd node-v12.18.1-linux-x64 / / enter the decompression directory
The bin directory of the decompressed file contains commands such as node and npm. We can modify the environment variable (profile) of the linux system to set the command to run directly:
The old rule is to back up first and form the good habit of backing up important files before modifying them.
Cp / etc/profile / etc/profile.bak
Then vim / etc/profile, add export PATH=$PATH at the bottom: followed by the path to the bin directory under node
Export PATH=$PATH:/root/node-v12.18.1-linux-x64/bin
Effective immediately
Source / etc/profile [root@localhost ~] # node-vv12.18.1 read here, this article "how to install nodejs in Linux system" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it. If you want to know more about related articles, please follow the industry information channel.
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.