1.pom.xml加入依赖

<dependencies>
<!--添加热部署-->

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
        <scope>true</scope>
    </dependency>

另外下面的代码是放在<build> 下面<plugins>里的

<plugin>

<!--热部署配置-->
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <!--fork:如果没有该项配置,整个devtools不会起作用-->
                <fork>true</fork>
            </configuration>
        </plugin>
  1. 设置IDEA的自动编译:

2.1. File-Settings-Compiler勾选 Build Project automatically

2.2. 快捷键 ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running

安装erlang OTP 23.0, RabbitMQ Server 3.8.6,

rabbitmq-service.bat install & if not errorlevel 1 exit /b 0

rabbitmq-service.bat stop & if not errorlevel 1 exit /b 0

rabbitmqctl status

rabbitmq-plugins.bat enable rabbitmq_management

http://127.0.0.1:15672

输入guest,guest进入rabbitMQ管理控制台

1.安装gcc

yum install gcc gcc-c++

2.下载node国内镜像(推荐)

当前LTS版本是: 12.18.3

下载地址 https://npm.taobao.org/mirrors/node/

wget https://npm.taobao.org/mirrors/node/v12.18.3/node-v12.18.3-linux-x64.tar.gz

3.解压并重命名文件夹

tar -xvf node-v12.18.3-linux-x64.tar.gz
mv node-v12.18.3-linux-x64 node

4.添加环境变量

vi /etc/profile.d/nodejs.sh

NODE_HOME=/root/node-v12.18.3-linux-x64
PATH=$NODE_HOME/bin:$PATH

5.刷新配置

chmod +x /etc/profile.d/nodejs.sh

source /etc/profile

6.验证结果:

node -v
npm -v

vi /etc/ssh/sshd_config

UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication yes

RSAAuthentication yes
PubkeyAuthentication yes
PermitEmptyPasswords yes
StrictModes no
AuthorizedKeysFile      .ssh/authorized_keys

systemctl restart sshd.service

ssh-keygen -t rsa

vi ~/.ssh/authorized_keys

ssh root@ip:22