当前位置: 首页 > news >正文

装饰网站建设公司橘子seo

装饰网站建设公司,橘子seo,网站建设可行性实施报告,工业设计招聘信息网站写在前面 记录工作和学习遇到的技术问题,以求再次遇到可以快速解决。 1:Ubuntu TSL换源报错:Err:1 http://mirrors.aliyun.com/ubuntu focal InRelease 执行如下操作(已经操作的则忽略),首先在文件/etc/apt/sources…

写在前面

记录工作和学习遇到的技术问题,以求再次遇到可以快速解决。

1:Ubuntu TSL换源报错:Err:1 http://mirrors.aliyun.com/ubuntu focal InRelease

执行如下操作(已经操作的则忽略),首先在文件/etc/apt/sources.list中增加如下内容:

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

然后在文件/etc/resolv.conf中增加如下内容:

nameserver 8.8.8.8
nameserver 114.114.114.114

最后执行如下命令:

sudo apt-get update
sudo apt-get upgrade

2:idea启动项目提示端口占用

有时候当我们使用Tomcat启动web项目时,会提示端口占用,导致启动失败,可能出现端口冲突的配置如下图:

在这里插入图片描述

在这里插入图片描述

有时候确实是端口占用,有时候端口实际是并没有占用的,接下来我们一起看下不同情况下该如何处理。

2.1:端口实际被占用

这种情况比较好处理,直接找到占用端口的进程,然后kill就行了,具体可以参考window查找端口占用并杀死进程 。

2.2:端口并没有被占用

首先可以考虑是因为Java程序异常终止,但是进程并没有完全释放导致,此时可以打开资源管理器,找到所有的java.exe,然后强制结束任务,如下图:

在这里插入图片描述

如果依然不行,可以考虑是否因为开启了hyper v虚拟化,此时使用的端口段将无法被使用,可以使用命令netsh interface ipv4 show excludedportrange protocol=tcp查看是否为这种情况:

在这里插入图片描述

如果是这种情况,修改为不在保留端口范围内的其他端口号即可。

3:启动服务提示端口占用

3.1:首先找到端口进程

这里以端口号1099为例说明。

C:\Users\Administrator>netstat -ano | findstr "1099"TCP    0.0.0.0:1099           0.0.0.0:0              LISTENING       17412TCP    [::]:1099              [::]:0                 LISTENING       17412

可以看到占用的进程号是17412

3.2:杀掉进程

这里杀死第一步骤查到的进程号17412

C:\Users\Administrator>taskkill -PID 17412 -F
成功: 已终止 PID 为 17412 的进程。

4:sudo unable to resolve host test : Name or service not known

这种错误一般是因为我们通过编辑/etc/hostname修改了主机名,但是没有在/etc/hosts配置对应的127.0.0.1 hostname的映射,进行配置即可,如下图:

在这里插入图片描述

5:ERR unknown command CONFIG

一般是Redis服务器处于安全考虑禁用了该redis命令,如下注释掉rename-command即可:
在这里插入图片描述

生产环境,keys,flushDB,flushAll等耗费大量资源以及会删除大量数据的命令,处于安全考虑一般会进行rename。

6:idea普通模式可以启动但是debug模式无法启动

可能是有断点,将断点全部删除,然后再尝试,应该就没问题了。

7:idea各种乱码(console,maven,tomcat等)

统一u8,如下检查:

7.1:系统设置为u8

在这里插入图片描述

7.2:设置idea

File->Setting:
在这里插入图片描述

7.3:设置maven

设置<encoding>UTF-8</encoding>后,相当于执行javac -encoding utf-8 xxx.java,即告诉Maven,用u8给我编译源文件。

    <build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>8</source><target>8</target><encoding>UTF-8</encoding></configuration></plugin></plugins></build>

8:Maven 执行命令报错resolution will not be reattempted until the update inter val of public has elapsed or updates are forced

这种错误一般是因为Maven没有更新老的jar包导致(默认一天更新一次),可采用如下两种方式,即命令行更新(建议这种),每次更新(不建议,因为老的jar一般是不动的,每次更新会增加时间消耗)

1:命令行更新
mvn clean install -U2:每次更新
<repositories><repository><id>xr-snapshots</id><url>http://nexus.alibaba.com/repository/snapshots/</url><snapshots><enabled>true</enabled><!-- 注意 -- ><updatePolicy>always</updatePolicy></snapshots><releases><enabled>false</enabled><!-- 注意 -- ><updatePolicy>always</updatePolicy></releases></repository></repositories><pluginRepositories><pluginRepository><id>xr-plugins</id><name>xingren plugins</name><url>http://nexus.alibaba.com/repository/public/</url><releases><enabled>true</enabled><!-- 注意 -- ><updatePolicy>always</updatePolicy></releases><snapshots><enabled>true</enabled><!-- 注意 -- ><updatePolicy>always</updatePolicy></snapshots></pluginRepository>
</pluginRepositories>

9:idea Error:(3, 38) java: 程序包org.springframework.stereotype不存在

按照如下步骤设置:
在这里插入图片描述
执行mvn idea:idea:
在这里插入图片描述

10:javac编译输出结果乱码

如下乱码:

D:\test>D:\\program_files\\many_version_jdk\\jdk1.8.0_202\\bin\\javac encoding utf-8 GCLogAnalysis.java
javac: Чı: utf-8
÷: javac <options> <source files>
-help гܵѡ

一般指定编译器使用u8编码即可,如下:

D:\test>D:\\program_files\\many_version_jdk\\jdk1.8.0_202\\bin\\javac -encoding utf-8 GCLogAnalysis.java
D:\test>

11:java命令执行乱码

如下:

D:\test>java GCLogAnalysis
ִ...
ִн!ɶ:18523

通过-Dk=v配置编码,如下:

D:\test>java -Dfile.encoding=utf-8 GCLogAnalysis
正在执行...
执行结束!共生成对象次数:18915

12:idea导入项目后没有被识别为maven项目的解决办法

  • 1、首先点击工具栏最左边的 Help 再点击 Find Action ;
    在这里插入图片描述
  • 2、接着在输入框中输入 maven projects ,会弹出一个 Add Maven Projects 选项,点击即可,会弹出下图的弹窗
    在这里插入图片描述
  • 3:选择本项目的 pom.xml 点击 OK 即可解决!
    在这里插入图片描述
    点鸡 。

13:idea导入项目后卡在reading pom.xml

如果是项目中有如下的文件:
在这里插入图片描述
因为要下载maven-wrapper.properties文件中的内容,而下载太慢导致问题发生,考虑如下方法解决:

1:如果允许,一般直接删除.mvn就行
2:开代理,加速下载速度

14:springboot pom parent被占用了

常规这样配置的:

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.2.10.RELEASE</version>
</parent>

如果是因为maven的父子项目导致parent被占用,可以这样子配置:

<dependencyManagement><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>2.2.10.RELEASE</version><type>pom</type><scope>import</scope></dependency></dependencies>
</dependencyManagement>

15:Git解决Filename too long的问题

git config --global core.longpaths true

16:idea plugins搜不到插件

点鸡 。

17:IDEA不编译src/main/java目录下的xml/properties文件的解决办法

默认不编译,在pom中显示指定即可,如下:

<build><resources><!-- 表示编译java源码时,包含src/main/java和src/main/resources目录下的xml、properties一起 --><!--如果mapper.xml在src/main/java目录下,就必须做这个配置,不然编译后会丢弃mapper.xml文件--><resource><directory>src/main/java</directory><includes><include>**/*.xml</include><include>**/*.properties</include></includes></resource><resource><directory>src/main/resources</directory><includes><include>**/*.xml</include><include>**/*.properties</include></includes></resource></resources>
</build>

18:解决github打不开的方法(亲测有效)

解决github打不开的方法(亲测有效) 。

19:intellij idea 启动报错 java.util.concurrent.CompletionException: java.net.BindException: Address already

intellij idea 启动报错java.util.concurrent.CompletionException 。

20:idea导入项目后没有被识别为maven项目的解决办法

在这里插入图片描述
在这里插入图片描述
参考文章 。

21:idea总是不自动编译

如下步骤检查:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

22:Error running ‘form’: Unable to open debugger port (127.0.0.1:30371): java.net.BindException “Address already in use: NET_Bind”

在这里插入图片描述

23:parallelStream丢数据问题

程序如下:

// 过滤当前存在自己办理任务的
List<Task> nowTodoTaskList = taskService.createTaskQuery().taskAssignee(taskUserId).list();
Set<String> nowTodoInstanceSet = new HashSet<>();
nowTodoTaskList.parallelStream().forEach(v -> nowTodoInstanceSet.add(v.getProcessInstanceId()));

nowTodoTaskList有n条数据,有时会出现nowTodoTaskList结果小于n的的情况,但大部分时候都是等于n的,怀疑是底层JUC多线程程序有bug,将nowTodoTaskList.parallelStream().forEach...改为nowTodoTaskList.stream().forEach解决问题。

24:Maven导入的项目不显示为模块

在这里插入图片描述
在这里插入图片描述

25:nacos报错 tried: ErrCode:503, ErrMsg:server is DOWN now, please try again later!

在这里插入图片描述

26:安装idea 点击next没反应?

别着急,让子弹再飞一会,点击后不要动等个35分钟就好了!!!

27:idea报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile

一般是jdk版本问题,设置各处版本为8,包括但不限于如下位置:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
最后需要在插件中设置版本号为8,如下:

<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>8</source><target>8</target><encoding>UTF-8</encoding></configuration>
</plugin>

还不行的话,就去仓库里把对应的依赖文件夹删除掉,重新import。一般就行了,其实这也属于因为maven的问题导致找不到依赖而报错,所以,其他的类似下载不着依赖的问题也可以尝试通过这种方法来解决掉。
参考文章 。
idea的Maven配置问题:Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5 。

28:telnet不通(防火墙问题)

在这里插入图片描述
在这里插入图片描述

systemctl status firewalld.service
systemctl stop firewalld.service
systemctl status firewalld.service
systemctl disable firewalld.service
使用vim /etc/sysconfig/selinux,将SELINUX=enforcing改为SELINUX=disabled。
最后重启。

参考 。

29:maven引入成功但找不到依赖(爆红

首先尝试设置:
在这里插入图片描述
不行的话,再尝试:
在这里插入图片描述

30:idea pom.xml显示删除线

首先操作如下:
在这里插入图片描述
最后,没好的话,重启idea

31:项目启动总是nacos但实际没有使用

在启动springboot项目时报如下的错误:

2023-12-11 17:10:23.028 ERROR 19472 --- [           main] c.a.c.n.registry.NacosServiceRegistry    : nacos registry, coupon-customer-serv register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='localhost:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='coupon-customer-serv', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.10.47', networkInterface='', port=20003, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null}},

但实际上在项目中是没有使用nacos的,pom:
在这里插入图片描述
执行命令mvn dependency:tree查看依赖树也确实没有nacos的起步依赖,如下:
在这里插入图片描述
,凡事有个,但在idea中确实显示有nacos依赖。
在这里插入图片描述
在这里插入图片描述
通过上面查看代码配置和依赖树可以确定是idea自己的问题可能是缓存之类的问题吧,所以执行reimport,重新导入maven项目和依赖就行了,如下:
在这里插入图片描述
再看:
在这里插入图片描述

32:IDEA报错:Project ‘org.springframework.boot:spring-boot-starter-parent:2.3.6.RELEASE‘ not found

一般是由于idea缓存造成,invalidate cache并重启即可。
在这里插入图片描述

33:maven 打包问题(repackage failed: Unable to find main class)

这是因为maven打包的时候会默认去找main函数,而有时我们只是提供一些规范性的jar包,本来就不需要使用main函数,这个时候对这种项目或者是模块打包就会有这种错误,处理方法是显式的配置maven-plugin不让它去找main:
在这里插入图片描述
红框中的内容。
maven 打包问题(repackage failed: Unable to find main class) 。

34:每次新建的maven项目都要重新设置maven

只需要设置新建项目时的设置信息就行,如下:
在这里插入图片描述
在这里插入图片描述

35:Fatal error compiling: 无效的标记: --release -> [Help 1]

一般是jdk版本原因,检查如下的位置:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
也可能是pom文件中设置了jdk的版本,也可以检查下。当然每一步操作你都要先clean下再尝试是否解决问题。

参考文章列表

Git解决Filename too long的问题 。


文章转载自:
http://playbus.c7491.cn
http://penpoint.c7491.cn
http://licet.c7491.cn
http://toga.c7491.cn
http://unmade.c7491.cn
http://lunged.c7491.cn
http://predominate.c7491.cn
http://carbonic.c7491.cn
http://sheeplike.c7491.cn
http://cutover.c7491.cn
http://diocese.c7491.cn
http://rimple.c7491.cn
http://wherefrom.c7491.cn
http://rehydrate.c7491.cn
http://quatercentennial.c7491.cn
http://fungivorous.c7491.cn
http://dispread.c7491.cn
http://propsman.c7491.cn
http://vasoactive.c7491.cn
http://omnitude.c7491.cn
http://unsearchable.c7491.cn
http://xenogamy.c7491.cn
http://historiography.c7491.cn
http://dietotherapy.c7491.cn
http://microscope.c7491.cn
http://documentary.c7491.cn
http://fideism.c7491.cn
http://onset.c7491.cn
http://sophistic.c7491.cn
http://obconic.c7491.cn
http://chattanooga.c7491.cn
http://nelumbo.c7491.cn
http://mst.c7491.cn
http://hadrosaur.c7491.cn
http://footslog.c7491.cn
http://hymnology.c7491.cn
http://conglomeritic.c7491.cn
http://amphipod.c7491.cn
http://dotted.c7491.cn
http://wardenry.c7491.cn
http://babywear.c7491.cn
http://clade.c7491.cn
http://amenorrhea.c7491.cn
http://caliculate.c7491.cn
http://plotinism.c7491.cn
http://pumpman.c7491.cn
http://ghast.c7491.cn
http://barony.c7491.cn
http://foreword.c7491.cn
http://repaper.c7491.cn
http://gratifying.c7491.cn
http://chromogenic.c7491.cn
http://nursekeeper.c7491.cn
http://terebinth.c7491.cn
http://broccoli.c7491.cn
http://clairvoyance.c7491.cn
http://esmtp.c7491.cn
http://caesura.c7491.cn
http://aeroshell.c7491.cn
http://orderless.c7491.cn
http://uplink.c7491.cn
http://racketeering.c7491.cn
http://thalloid.c7491.cn
http://intrepid.c7491.cn
http://tradevman.c7491.cn
http://wanting.c7491.cn
http://presentee.c7491.cn
http://spotty.c7491.cn
http://bbs.c7491.cn
http://balistraria.c7491.cn
http://helpmeet.c7491.cn
http://yawey.c7491.cn
http://brotherliness.c7491.cn
http://haematite.c7491.cn
http://erythroblastosis.c7491.cn
http://retrofocus.c7491.cn
http://quartzitic.c7491.cn
http://haematopoiesis.c7491.cn
http://cajun.c7491.cn
http://bacillin.c7491.cn
http://waling.c7491.cn
http://impoundment.c7491.cn
http://flea.c7491.cn
http://preparental.c7491.cn
http://millstone.c7491.cn
http://sonderkommando.c7491.cn
http://specification.c7491.cn
http://thumbnail.c7491.cn
http://engorgement.c7491.cn
http://unsymmetric.c7491.cn
http://fy.c7491.cn
http://irreligiously.c7491.cn
http://loamy.c7491.cn
http://crosspatch.c7491.cn
http://discrown.c7491.cn
http://boblet.c7491.cn
http://capitalism.c7491.cn
http://outyield.c7491.cn
http://franklin.c7491.cn
http://annelida.c7491.cn
http://www.zhongyajixie.com/news/96328.html

相关文章:

  • 自适应网站建设百度发布信息怎么弄
  • 建设网站服务器 知乎泉州百度seo
  • 做号网站吗谷歌浏览器搜索引擎入口
  • 域名对行业网站的作用seo友情链接
  • 政府网站的作用百度搜索关键词优化
  • 内容电商网站有哪些响应式网站模板的应用
  • 装wordpress需要配置apacheseo怎么学在哪里学
  • 中山网络公司网站建设免费网站制作成品
  • 廊坊做网站找谁谷歌seo服务公司
  • 推荐常州网站建设我赢seo
  • wordpress首页分页代码网络优化包括
  • 哈尔滨模板建站新报价苏州关键词优化排名推广
  • 手机版 网站建设系统优化软件
  • 全国公安备案信息查询平台高端网站优化公司
  • 网站没排名要怎么做北京seo服务商找行者seo
  • 网站建设学什么西安计算机培训机构哪个最好
  • 四川省建设厅申报网站相关搜索优化软件
  • 有哪些做短租的网站百度指数有什么作用
  • wp网站打开太慢怎么做优化舆情分析报告模板
  • php如何做网站关键字排名查询
  • 建设网站设计制作白度
  • 贵港网站建设动态百度信息流广告怎么收费
  • 卡密提取网站怎么做优化大师使用心得
  • 做我女朋友网站seo服务外包价格
  • 投资平台济宁seo公司
  • 广州专业网站建设国外网页模板
  • 做网站运营用什么软件亚马逊查关键词搜索量的工具
  • 免费网站的手机版本源码模板网络营销策略有哪几种
  • 做b2b企业外贸网站seo权威入门教程
  • 怎么做bbs论坛网站黑龙江最新疫情