将springboot网站部署到linux服务器上遇到的问题,ssl证书,数据库等

    科技2022-07-13  132

    1.

    nginx配置好域名与端口号,域名也配置好了ip地址,可是开启nginx之后,访问域名报错,应该是在nginx.cnf文件中设置了代理地址和端口

     2.

    在IDEA中将网站源码打包成jar包时,mvn clean报错,导致重新打包报错,大概是因为开启了WinSCP软件。关掉之后重新clean 、install就可以了。

    3.

    使用  ./startDidiok.sh  命令启动网站的jar包时,报错,大概是因为startDidiok.sh中设置了profiles.active=test了

     

    4.

    将本地数据库的表及表里的数据导入到linux服务器上的数据库时,需谨慎,有可能本地设置了不区分大小写,而linux设置了区分大小写,在my.cnf文件中[mysqld]下添加 lower_case_table_names=1 就都将表名改成了小写 ,以后查表也都按照小写进行查找

    详情可查看https://blog.csdn.net/qq_27346503/article/details/108902931

     

    5.

    使用group by语句时,报错,获取不到数据,出现SELECT list is not in GROUP BY clause and contains nonaggregated column 问题

    Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sss.month_id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

    解决方案可查看https://blog.csdn.net/qq_27346503/article/details/108914845 

     

    Processed: 0.010, SQL: 8