打开git主页,看说明部分:
https://github.com/withstars/Books-Management-System
$ git clone https://github.com/withstars/Books-Management-System
$ cd Books-Management-System
$ mvn clean compile
$ mvn clean package
$ mvn clean install
$ mvn jetty:run
http://localhost:9000
1.执行git clone https://github.com/withstars/Books-Management-System
遇到报错:
OpenSSL SSL_read: Connection was reset, errno 10054
参考:
https://blog.csdn.net/qq_29493173/article/details/114534057
步骤3,注意关闭vpn
2.执行cd Books-Management-System
3.执行mvn clean compile
遇到报错:
bash: mvn: command not found
参考:
https://cloud.tencent.com/developer/article/1556981
https://blog.csdn.net/Cheng_Kohui/article/details/82874583
4.执行mvn clean compile
5.执行mvn clean package
6.执行mvn clean install
7.执行mvn jetty:run
8.打开http://ip:9000
遇到无法访问问题
参考:
https://blog.csdn.net/weixin_43871182/article/details/104788143
9.成功打开http://ip:9000
报错无法通过root账号密码访问数据库
建立数据库,执行/Books-Management-System/library.sql初始化脚本,在/Books-Management-System/src/main/resources/book-context.xml中修改数据源连接配置。
执行:
ps aux | grep jetty
kill -s 9 xxxx
mvn jetty:run
重新启动服务
10.成功打开http://ip:9000并使用admin表的账号和密码登录成功,修改账号密码,遇到报错:
Could not retrieve transation read-only status server
参考:
https://blog.csdn.net/Hello_World_QWP/article/details/80654536
两个方法没搞定,把mysql版本降级成5.6解决