煲汤学习ruoyi-vue第一天

第一步:

clone ruoyi-vue

git clone https://gitee.com/y_project/RuoYi-Vue.git

 接下来主要是打开项目,并且正常跑起来

第二步:使用idea打开项目,然后等待右下角完成

第三步 :使用xshell链接远程主机,启动redis_1001

redis-server redis_1001.conf

redis_1001.conf 内容如下;

[root@iZ7xv787bto66k097p6q31Z msconf]# cat redis_1001.conf 
#bind 127.0.0.1
protected-mode no
port 1001
requirepass 123456
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize no
supervised no
pidfile /var/run/redis_1001.pid
loglevel notice
logfile ""
databases 16
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump_1001.rdb
dir ./
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
replica-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
appendonly no
appendfilename "appendonly_1001.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes

第四步:修改ruoyi-vue里面的application.yml 的 redis配置煲汤学习ruoyi-vue第一天_第1张图片

第五步: 执行数据库文件和修改数据库配置

煲汤学习ruoyi-vue第一天_第2张图片

煲汤学习ruoyi-vue第一天_第3张图片

 启动项目,看到如下图即说明成功启动后端

煲汤学习ruoyi-vue第一天_第4张图片

接下来启动前端

首先下载node.js

npm i //下载npm
//执行 
npm dev run

如果出现错误

E:\源代码\RuoYi-Vue\ruoyi-ui>npm run dev
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> [email protected] dev
> vue-cli-service serve

执行以下命令即可

npm i

在...\RuoYi-Vue\ruoyi-ui 路径下打开cmd窗口

npm dev run

然后自动打开登录网页

完毕!

你可能感兴趣的:(学习)