1. Login session
2. Install X11-forwarding
- I don't know what's the use of this, but there is a fork in there, which is a bit uncomfortable, so I solved it
- What is X11-forwarding? how to use?
yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock -y
After installation, there is no fork
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
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)
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