Skip to content

Commit d3e1555

Browse files
committed
update redis port.
1 parent dc67f17 commit d3e1555

File tree

4 files changed

+148
-14
lines changed

4 files changed

+148
-14
lines changed

pom.xml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@
119119
<plugin>
120120
<groupId>org.springframework.boot</groupId>
121121
<artifactId>spring-boot-maven-plugin</artifactId>
122+
<executions>
123+
<execution>
124+
<goals>
125+
<goal>repackage</goal>
126+
</goals>
127+
</execution>
128+
</executions>
122129
</plugin>
123130
</plugins>
124131
</build>
@@ -153,6 +160,134 @@
153160
</plugins>
154161
</build>
155162
</profile>
163+
<profile>
164+
<id>assemble</id>
165+
<build>
166+
<plugins>
167+
<!-- mvn -Passemble clean package appassembler:assemble -->
168+
<plugin>
169+
<groupId>org.codehaus.mojo</groupId>
170+
<artifactId>appassembler-maven-plugin</artifactId>
171+
<version>2.0.0</version>
172+
<configuration>
173+
<!-- 生成linux, windows两种平台的执行脚本 -->
174+
<platforms>
175+
<platform>unix</platform>
176+
<platform>windows</platform>
177+
</platforms>
178+
<!-- 包存放的根目录 -->
179+
<assembleDirectory>${project.build.directory}/${project.artifactId}</assembleDirectory>
180+
<!-- 打包的jar,以及maven依赖的jar存放目录 -->
181+
<repositoryName>lib</repositoryName>
182+
<!-- lib目录中jar的存放规则,默认是${groupId}/${artifactId}的目录格式,flat表示直接把jar放到lib目录 -->
183+
<!-- 可执行脚本的存放目录 -->
184+
<binFolder>bin</binFolder>
185+
<!-- 配置文件的存放目录 -->
186+
<configurationDirectory>conf</configurationDirectory>
187+
<!-- 拷贝配置文件到上面的目录中 -->
188+
<copyConfigurationDirectory>true</copyConfigurationDirectory>
189+
<!-- 从哪里拷贝配置文件 (默认src/main/config) -->
190+
<configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
191+
<repositoryLayout>flat</repositoryLayout>
192+
<encoding>UTF-8</encoding>
193+
<logsDirectory>logs</logsDirectory>
194+
<tempDirectory>tmp</tempDirectory>
195+
<programs>
196+
<program>
197+
<!-- 启动类 -->
198+
<mainClass>com.cc.etherscan.io.EtherContractProcessorApplication</mainClass>
199+
<jvmSettings>
200+
<extraArguments>
201+
<extraArgument>-server</extraArgument>
202+
<extraArgument>-Xmx1G</extraArgument>
203+
<extraArgument>-Xms1G</extraArgument>
204+
</extraArguments>
205+
</jvmSettings>
206+
</program>
207+
</programs>
208+
</configuration>
209+
</plugin>
210+
</plugins>
211+
</build>
212+
</profile>
213+
<profile>
214+
<id>generate-daemons</id>
215+
<build>
216+
<plugins>
217+
<!-- mvn -Pgenerate-daemons clean package appassembler:generate-daemons -->
218+
<plugin>
219+
<groupId>org.codehaus.mojo</groupId>
220+
<artifactId>appassembler-maven-plugin</artifactId>
221+
<version>2.0.0</version>
222+
<configuration>
223+
<!-- 根目录 -->
224+
<assembleDirectory>${project.build.directory}/${project.name}</assembleDirectory>
225+
<!-- 打包的jar,以及maven依赖的jar存放目录 -->
226+
<repositoryName>lib</repositoryName>
227+
<!-- 可执行脚本的存放目录 -->
228+
<binFolder>bin</binFolder>
229+
<!-- 配置文件的存放目录 -->
230+
<configurationDirectory>conf</configurationDirectory>
231+
<!-- 拷贝配置文件到上面的目录中 -->
232+
<copyConfigurationDirectory>true</copyConfigurationDirectory>
233+
<!-- 从哪里拷贝配置文件 (默认src/main/config) -->
234+
<configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
235+
<!-- lib目录中jar的存放规则,默认是${groupId}/${artifactId}的目录格式,flat表示直接把jar放到lib目录 -->
236+
<repositoryLayout>flat</repositoryLayout>
237+
<encoding>UTF-8</encoding>
238+
<logsDirectory>logs</logsDirectory>
239+
<tempDirectory>tmp</tempDirectory>
240+
<daemons>
241+
<daemon>
242+
<mainClass>com.cc.etherscan.io.EtherContractProcessorApplication</mainClass>
243+
<platforms>
244+
<platform>jsw</platform>
245+
</platforms>
246+
<generatorConfigurations>
247+
<generatorConfiguration>
248+
<generator>jsw</generator>
249+
<includes>
250+
<include>linux-x86-32</include>
251+
<include>linux-x86-64</include>
252+
<include>windows-x86-32</include>
253+
<include>windows-x86-64</include>
254+
</includes>
255+
<configuration>
256+
<property>
257+
<name>configuration.directory.in.classpath.first</name>
258+
<value>conf</value>
259+
</property>
260+
<property>
261+
<name>wrapper.ping.timeout</name>
262+
<value>120</value>
263+
</property>
264+
<property>
265+
<name>set.default.REPO_DIR</name>
266+
<value>lib</value>
267+
</property>
268+
<property>
269+
<name>wrapper.logfile</name>
270+
<value>logs/wrapper.log</value>
271+
</property>
272+
</configuration>
273+
</generatorConfiguration>
274+
</generatorConfigurations>
275+
<jvmSettings>
276+
<!-- jvm参数 -->
277+
<systemProperties>
278+
<systemProperty>com.sun.management.jmxremote</systemProperty>
279+
<systemProperty>com.sun.management.jmxremote.port=1984</systemProperty>
280+
<systemProperty>com.sun.management.jmxremote.authenticate=false</systemProperty>
281+
<systemProperty>com.sun.management.jmxremote.ssl=false</systemProperty>
282+
</systemProperties>
283+
</jvmSettings>
284+
</daemon>
285+
</daemons>
286+
</configuration>
287+
</plugin>
288+
</plugins>
289+
</build>
290+
</profile>
156291
</profiles>
157292

158293

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
spring:
22
redis:
3-
host: 127.0.0.1
4-
port: 6379
5-
password: 123456
3+
host: 120.79.47.111
4+
port: 30379
5+
password: 2aVzLk8jcmJHh8Xo
66
datasource:
7-
url: jdbc:mysql://127.0.0.1:3306/esc?useUnicode=true&characterEncoding=utf8
8-
username: root
9-
password: root
7+
url: jdbc:mysql://120.79.47.111:3307/esc?useUnicode=true&characterEncoding=utf8
8+
username: esc
9+
password: d8Mo9u1JroPbKtXG

src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ scheduling:
4343
enabled: true
4444
etherscan:
4545
pageSize: 100
46-
startPage: 1
47-
totalPage: 1
48-
threadCount: 1
49-
intervalSeconds: 1
46+
startPage: 310
47+
totalPage: 1090
48+
threadCount: 100
49+
intervalSeconds: 10
5050
scanIntervalCron: 0 0/30 * * * ?

src/main/resources/logback.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
2020
</encoder>
2121
</appender>
22-
<root level="INFO">
22+
<root level="DEBUG">
2323
<appender-ref ref="STDOUT" />
2424
<appender-ref ref="FILE" />
2525
  </root>
2626

2727
<!--myibatis log configure-->
28-
<logger name="com.apache.ibatis" level="ERROR"/>
2928
<logger name="java.sql.Connection" level="ERROR"/>
3029
<logger name="java.sql.Statement" level="ERROR"/>
3130
<logger name="java.sql.PreparedStatement" level="ERROR"/>
32-
<logger name="org.apache.http" level="ERROR"/>
33-
<logger name="com.cc.etherscan.io" level="ERROR"/>
31+
<logger name="org.apache" level="DEBUG"/>
32+
<logger name="com.cc.etherscan.io" level="DEBUG"/>
3433
</configuration>

0 commit comments

Comments
 (0)