Linux builds node environment - MobaXterm+node+pm2 installation

1. Login session

2. Install X11-forwarding

insert image description here

yum install  xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock -y

insert image description here
After installation, there is no fork
insert image description here

3. Install node

Since the version of nodejs installed directly by yum is too low, refer to this article for installation: Install node in Linux

4. Install pm2

npm install -g pm2

Create a soft link:

ln -s /usr/local/node-v14.15.4-linux-x64/bin/pm2 /usr/local/bin

Enter pm2 list, if the data shown in the figure appears, the installation configuration is successful
insert image description here

5. Install git

Installation command: yum -y install git
After the installation is complete, git --version View version
Modify your user name and email address:
git config --global user.name "xxx"
git config --global user.email "xxx"
and put yourself The code of the remote warehouse is cloned
(you can skip this step if you do not use git to synchronize the code)
insert image description here

6. Configuration

My server has already installed nginx before, I don’t know how to install it on my own Baidu, so I won’t go into details here

Guess you like

Origin blog.csdn.net/qq_23073811/article/details/121769556