Install Nodejs on CentOS system

1. Software download

Official website: https://nodejs.org/en/

(1) Instructions for downloading the new version: The new version can be downloaded directly from the home page, or downloaded from the DOWNLOADS page

(2) For the download instructions of the old version, enter the "DOWNLOADS" page, slide the page to the bottom, click "Previous Releases" on the left to enter the version selection page

        ① Select the desired version to download, click "Downloads" to enter

        ② Select the required installation package type to download, windowsn directly click to download

        ③ linux copy download link use wget to download

2. The download is complete, unzip the file (Centos7 installation)

tar -zxvf node-v6.10.2-linux-x64.tar.gz //Decompression

3. Modify the directory name

mv node-v6.10.2-linux-x64 node

4. Whether the test is successful

./node/bin/node -v //View version number

5. Create a soft link

ln -s /usr/local/src/software/node/bin/node /usr/bin/

Guess you like

Origin blog.csdn.net/StupidlyGrass/article/details/128658816
Recommended