欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

将若依项目部署到服务器.学习.

程序员文章站 2022-07-12 09:59:43
...

(2020-3-2 1:45:17)
生成的jar包.传到服务器.启动.
将若依项目部署到服务器.学习.

[aaa@qq.com*** jar_package]# java -jar ruoyi-admin.jar

运行.

java.sql.SQLSyntaxErrorException: Unknown database ‘ry’

错误.(2020-3-2 1:46:47)
生成数据库.

官方教程

创建数据库ry并导入数据脚本ry_20190215.sql,quartz.sql

那么.导入.(2020-3-2 1:48:28)

第二次错误:Caused by: java.net.BindException: Address already in use

(2020-3-2 1:56:09)

***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port.

01:55:32.336 [main] INFO  o.q.c.QuartzScheduler - [shutdown,666] - Scheduler RuoyiScheduler_$_***1583085324783 shutting down.
01:55:32.338 [main] INFO  o.q.c.QuartzScheduler - [standby,585] - Scheduler RuoyiScheduler_$_****1583085324783 paused.
01:55:32.339 [main] INFO  o.q.c.QuartzScheduler - [shutdown,740] - Scheduler RuoyiScheduler_$_***1583085324783 shutdown complete.
01:55:32.339 [main] INFO  sys-user - [shutdownAsyncManager,62] - ====关闭后台任务任务线程池====
01:55:32.345 [main] INFO  sys-user - [shutdownEhCacheManager,75] - ====关闭缓存====
01:55:32.392 [main] INFO  c.a.d.p.DruidDataSource - [close,1928] - {dataSource-1} closed

检测端口占用.?
或.修改端口号.?(2020-3-2 1:57:20)

查找端口号.

netstat -anp |grep 80

tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      2444/nginx

(2020-3-2 2:06:09)
停止nginx?

nginx -s quit

重新

java -jar ruoyi-admin.jar

(♥◠‿◠)ノ゙  若依启动成功   ლ(´ڡ`ლ)゙  
 .-------.       ____     __        
 |  _ _   \      \   \   /  /    
 | ( ' )  |       \  _. /  '       
 |(_ o _) /        _( )_ .'         
 | (_,_).' __  ___(_ o _)'          
 |  |\ \  |  ||   |(_,_)'         
 |  | \ `'   /|   `-'  /           
 |  |  \    /  \      /           
 ''-'   `'-'    `-..-'              
02:09:27.179 [Quartz Scheduler [RuoyiScheduler]] INFO  o.q.c.QuartzScheduler - [start,547] - Scheduler RuoyiScheduler_$_***1583086158452 started.

ok(2020-3-2 2:10:38)
将若依项目部署到服务器.学习.
成功.通过服务器.访问.
80端口.自动跳转.过来.成功.

[空数据库]添加数据库.账号.尝试.(2020-3-2 2:12:46)

不是.空数据库…不需要.导入.创建…(2020-3-2 2:14:02)ok.

但是.这不是一直运行.?命令行结束.也就结束.?(2020-3-2 2:14:30)

nohup java -jar ruoyi-admin.jar >log.txt &

nohup java -jar ruoyi-admin.jar >log.txt &
[3] 9377
nohup: ignoring input and redirecting stderr to stdout

over(2020-3-2 2:48:18)