1. 安装jenkins

2. 安装nginx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# centos
yum install -y epel-release
yum update
yum install -y nginx

# 查看版本是否安装成功
nginx -v

# ubuntu/debian
➜ ~ apt update -y && apt upgrade -y
➜ ~ apt install nginx -y
➜ ~ nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

1
mkdir -p /opt/webapps/ruoyi-ui/

3. jenkins配置

这里我找了一个开源项目来部署 ruoyi-vue,这个项目比较喜欢。

安装nodejs 插件

安装后重启
image.png