Skip to content

Commit 3bd5d61

Browse files
committed
perf: 优化
1 parent c1e1a04 commit 3bd5d61

56 files changed

Lines changed: 192 additions & 1977 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# Global
22
TZ=Asia/Shanghai
3+
DIR_CONFIG=./config
4+
DIR_DATA=./data
35
DIR_LOGS=./logs
4-
DIR_SERVICES=./services
5-
DIR_SOURCE=./www
6+
DIR_WWW=./www
67

78
# Mysql
8-
MYSQL_VERSION=8.0.37-debian
9+
MYSQL_VERSION=8.0.40-debian
910
MYSQL_ROOT_PASSWORD=123456
1011
MYSQL_HOST_PORT=3306
1112

1213
# Redis
1314
REDIS_VERSION=7.0.15
1415
REDIS_HOST_PORT=6379
16+
REDIS_PASSWORD=123456
1517

1618
# Memcached
1719
MEMCACHED_VERSION=1

services/clickhouse/config.d/docker_related_config.xml renamed to config/clickhouse/config.d/docker_related_config.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@
66

77
<logger>
88
<level>warning</level>
9-
<log></log>
10-
<errorlog></errorlog>
11-
<console>true</console>
129
</logger>
1310
</clickhouse>

config/mysql/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!mysql.cnf
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[client]
2-
default-character-set = utf8mb4
3-
4-
[mysql]
5-
default-character-set = utf8mb4
6-
71
[mysqld]
82
sql-mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO
93
authentication-policy = caching_sha2_password
@@ -12,6 +6,6 @@ collation-server = utf8mb4_general_ci
126
skip-log-bin
137
slow-query-log = ON
148
long-query-time = 1
15-
slow-query-log-file = /var/lib/mysql/slow.log
16-
log-error = /var/lib/mysql/error.log
17-
default-time-zone = 'Asia/Shanghai'
9+
slow-query-log-file = /var/log/mysql/slow.log
10+
log-error = /var/log/mysql/error.log
11+
default-time-zone = 'Asia/Shanghai'

0 commit comments

Comments
 (0)