Dalivk's Blog

0 error(s), 0 warning(s)

screw gitee

pom.xml 中加入配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<build>
<plugins>
<plugin>
<groupId>cn.smallbun.screw</groupId>
<artifactId>screw-maven-plugin</artifactId>
<version>1.0.5</version>
<dependencies>
<!-- HikariCP -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.4.5</version>
</dependency>
<!--mysql driver-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.20</version>
</dependency>
</dependencies>
<configuration>
<!--username-->
<username>root</username>
<!--password-->
<password>byxf1qaz</password>
<!--driver-->
<driverClassName>com.mysql.cj.jdbc.Driver</driverClassName>
<!--jdbc url-->
<jdbcUrl>jdbc:mysql://localhost:3306/app</jdbcUrl>
<!--生成文件类型-->
<fileType>HTML</fileType>
<!--打开文件输出目录-->
<openOutputDir>false</openOutputDir>
<!--生成模板-->
<produceType>freemarker</produceType>
<!--文档名称 为空时:将采用[数据库名称-描述-版本号]作为文档名称-->
<fileName>测试文档名称</fileName>
<!--描述-->
<description>数据库文档生成</description>
<!--版本-->
<version>${project.version}</version>
<!--标题-->
<title>数据库文档</title>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

80 - Nginx HTTP:常用于Web服务器的HTTP端口。
443 - Nginx HTTPS:常用于Web服务器的HTTPS端口。
1521 - Oracle:Oracle数据库默认端口。
2181 - Zookeeper:Zookeeper服务的默认端口。
2881 - OceanBase:OceanBase数据库的默认端口。
3000 - Grafana:Grafana的默认端口,用于数据可视化。
3306 - MySQL:MySQL数据库的默认端口。
5432 - PostgreSQL:PostgreSQL数据库的默认端口。
5601 - Kibana UI:Kibana的默认端口,用于Elasticsearch数据的可视化。
5672 - RabbitMQ:RabbitMQ的AMQP协议默认端口。
5984 - CouchDB:CouchDB的默认端口。
6379 - Redis:Redis数据库的默认端口。
7091 - Seata UI:Seata的Web UI端口。
7474 - Neo4j UI:Neo4j的Web UI端口。
7687 - Neo4j:Neo4j的Bolt协议默认端口。
8080 - Tomcat、Jenkins:Tomcat和Jenkins的常用端口。
8081 - Flink UI:Flink的Web UI端口。
8089 - Canal UI:Canal的Web UI端口。
8091 - Seata服务端口。
8500 - Consul UI:Consul的Web UI端口。
8848 - Nacos UI:Nacos的Web UI端口。
9000 - Kafka Manager UI:Kafka Manager的Web UI端口。
9090 - Prometheus:Prometheus的默认端口,用于监控。
9092 - Kafka:Kafka的默认端口。
9200 - ElasticSearch:Elasticsearch的默认端口。
15672 - RabbitMQ UI:RabbitMQ的管理界面端口。
26379 - Redis Sentinel:Redis Sentinel的默认端口。
27017 - MongoDB:MongoDB的默认端口。
50070 - Hadoop NameNode HTTP:Hadoop NameNode的Web UI端口。

git clone会下载全部提交历史记录,如果不需要历史记录,可使用使用参数控制深度

1
git clone --depth=1 https://github.com/dalivk/project.git

1
2
3
4
5
6
7
# --mirror包含全仓库,但merge无法推送gitee,可使用--bare代替
git clone --mirror https://github.com/dalivk/oldProject.git
git clone --bare https://github.com/dalivk/oldProject.git

cd oldProject.git
git remote set-url --push origin https://github.com/dalivk/newProject.git
git push –-mirror

1、服务端配置

添加jvm参数

1
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9001

参数说明:

  • jdwp:java debug wire protocol
  • transport=dt_socket:以socket协议进行通信
  • server=y:jvm以服务器模式运行,等待客户端连接
  • suspend=n:启动jvm不会挂起等待客户端连接,而是立即开始执行
  • address=9001:通信端口是9001

2、客户端配置

删除日志文件时,发现空间仍未释放,说明有进程占用
查看占用线程将其kill

1
lsof | grep deleted

释放日志文件占用空间更为推荐的方式是清空内容,代替删除文件

1
echo '' > app.log

1
nohup java -jar ./app.jar > ./app.log 2>&1 &

  • 关闭tab页【CloseContent】:Main Menu-》Window-》Editor Tabs-》Editor Close Actions-》Close Tab
  • 调试时快速计算表达式结果【QuickEvaluateExpression】:Main Menu-》Run-》Debugger Actions-》Debugging Actions-》Quick Evaluate Expression
  • 代码全折叠【CollapseAllRegions】:Main Menu-》Code-》Folding-》Collapse All
  • 代码全展开【ExpandAllRegions】:Main Menu-》Code-》Folding-》Expand All
0%