mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
feat: 修改redis配置文件
This commit is contained in:
parent
c9ff245222
commit
4dc1b516f4
@ -14,7 +14,7 @@
|
|||||||
"labelZh": "端口",
|
"labelZh": "端口",
|
||||||
"labelEn": "Port",
|
"labelEn": "Port",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": 8080,
|
"default": 8089,
|
||||||
"envKey": "PANEL_APP_PORT_HTTP"
|
"envKey": "PANEL_APP_PORT_HTTP"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"labelZh": "端口",
|
"labelZh": "端口",
|
||||||
"labelEn": "Port",
|
"labelEn": "Port",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": 8081,
|
"default": 8089,
|
||||||
"envKey": "PANEL_APP_PORT_HTTP"
|
"envKey": "PANEL_APP_PORT_HTTP"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
# You will also need to set a password unless you explicitly disable protected
|
# You will also need to set a password unless you explicitly disable protected
|
||||||
# mode.
|
# mode.
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
bind 127.0.0.1 -::1
|
# bind 127.0.0.1 -::1
|
||||||
|
|
||||||
# By default, outgoing connections (from replica to master, from Sentinel to
|
# By default, outgoing connections (from replica to master, from Sentinel to
|
||||||
# instances, cluster bus, etc.) are not bound to a specific local address. In
|
# instances, cluster bus, etc.) are not bound to a specific local address. In
|
||||||
@ -108,7 +108,7 @@ bind 127.0.0.1 -::1
|
|||||||
# By default protected mode is enabled. You should disable it only if
|
# By default protected mode is enabled. You should disable it only if
|
||||||
# you are sure you want clients from other hosts to connect to Redis
|
# you are sure you want clients from other hosts to connect to Redis
|
||||||
# even if no authentication is configured.
|
# even if no authentication is configured.
|
||||||
protected-mode yes
|
protected-mode no
|
||||||
|
|
||||||
# Redis uses default hardened security configuration directives to reduce the
|
# Redis uses default hardened security configuration directives to reduce the
|
||||||
# attack surface on innocent users. Therefore, several sensitive configuration
|
# attack surface on innocent users. Therefore, several sensitive configuration
|
||||||
@ -338,7 +338,7 @@ daemonize no
|
|||||||
#
|
#
|
||||||
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
||||||
# and should be used instead.
|
# and should be used instead.
|
||||||
pidfile /var/run/redis_6379.pid
|
pidfile "/var/run/redis_6379.pid"
|
||||||
|
|
||||||
# Specify the server verbosity level.
|
# Specify the server verbosity level.
|
||||||
# This can be one of:
|
# This can be one of:
|
||||||
@ -478,7 +478,7 @@ rdbchecksum yes
|
|||||||
# sanitize-dump-payload no
|
# sanitize-dump-payload no
|
||||||
|
|
||||||
# The filename where to dump the DB
|
# The filename where to dump the DB
|
||||||
dbfilename dump.rdb
|
dbfilename "dump.rdb"
|
||||||
|
|
||||||
# Remove RDB files used by replication in instances without persistence
|
# Remove RDB files used by replication in instances without persistence
|
||||||
# enabled. By default this option is disabled, however there are environments
|
# enabled. By default this option is disabled, however there are environments
|
||||||
@ -501,7 +501,7 @@ rdb-del-sync-files no
|
|||||||
# The Append Only File will also be created inside this directory.
|
# The Append Only File will also be created inside this directory.
|
||||||
#
|
#
|
||||||
# Note that you must specify a directory here, not a file name.
|
# Note that you must specify a directory here, not a file name.
|
||||||
dir ./
|
dir "/data"
|
||||||
|
|
||||||
################################# REPLICATION #################################
|
################################# REPLICATION #################################
|
||||||
|
|
||||||
@ -1343,7 +1343,6 @@ oom-score-adj no
|
|||||||
# oom-score-adj-values to positive values will always succeed.
|
# oom-score-adj-values to positive values will always succeed.
|
||||||
oom-score-adj-values 0 200 800
|
oom-score-adj-values 0 200 800
|
||||||
|
|
||||||
|
|
||||||
#################### KERNEL transparent hugepage CONTROL ######################
|
#################### KERNEL transparent hugepage CONTROL ######################
|
||||||
|
|
||||||
# Usually the kernel Transparent Huge Pages control is set to "madvise" or
|
# Usually the kernel Transparent Huge Pages control is set to "madvise" or
|
||||||
@ -1816,7 +1815,7 @@ slowlog-log-slower-than 10000
|
|||||||
|
|
||||||
# There is no limit to this length. Just be aware that it will consume memory.
|
# There is no limit to this length. Just be aware that it will consume memory.
|
||||||
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
||||||
slowlog-max-len 128
|
slowlog-max-len 10086
|
||||||
|
|
||||||
################################ LATENCY MONITOR ##############################
|
################################ LATENCY MONITOR ##############################
|
||||||
|
|
||||||
@ -1979,7 +1978,7 @@ hll-sparse-max-bytes 3000
|
|||||||
# zero, the limit is ignored, so for instance it is possible to set just a
|
# zero, the limit is ignored, so for instance it is possible to set just a
|
||||||
# max entries limit by setting max-bytes to 0 and max-entries to the desired
|
# max entries limit by setting max-bytes to 0 and max-entries to the desired
|
||||||
# value.
|
# value.
|
||||||
stream-node-max-bytes 4096
|
stream-node-max-bytes 4kb
|
||||||
stream-node-max-entries 100
|
stream-node-max-entries 100
|
||||||
|
|
||||||
# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
|
# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
|
||||||
@ -2274,3 +2273,10 @@ jemalloc-bg-thread yes
|
|||||||
# to suppress
|
# to suppress
|
||||||
#
|
#
|
||||||
# ignore-warnings ARM64-COW-BUG
|
# ignore-warnings ARM64-COW-BUG
|
||||||
|
|
||||||
|
# Generated by CONFIG REWRITE
|
||||||
|
save 3600 1
|
||||||
|
save 300 100
|
||||||
|
save 60 10000
|
||||||
|
latency-tracking-info-percentiles 50 99 99.9
|
||||||
|
user default on nopass ~* &* +@all
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
# You will also need to set a password unless you explicitly disable protected
|
# You will also need to set a password unless you explicitly disable protected
|
||||||
# mode.
|
# mode.
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
bind 127.0.0.1 -::1
|
# bind 127.0.0.1 -::1
|
||||||
|
|
||||||
# By default, outgoing connections (from replica to master, from Sentinel to
|
# By default, outgoing connections (from replica to master, from Sentinel to
|
||||||
# instances, cluster bus, etc.) are not bound to a specific local address. In
|
# instances, cluster bus, etc.) are not bound to a specific local address. In
|
||||||
@ -108,7 +108,7 @@ bind 127.0.0.1 -::1
|
|||||||
# By default protected mode is enabled. You should disable it only if
|
# By default protected mode is enabled. You should disable it only if
|
||||||
# you are sure you want clients from other hosts to connect to Redis
|
# you are sure you want clients from other hosts to connect to Redis
|
||||||
# even if no authentication is configured.
|
# even if no authentication is configured.
|
||||||
protected-mode yes
|
protected-mode no
|
||||||
|
|
||||||
# Redis uses default hardened security configuration directives to reduce the
|
# Redis uses default hardened security configuration directives to reduce the
|
||||||
# attack surface on innocent users. Therefore, several sensitive configuration
|
# attack surface on innocent users. Therefore, several sensitive configuration
|
||||||
@ -338,7 +338,7 @@ daemonize no
|
|||||||
#
|
#
|
||||||
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
# Note that on modern Linux systems "/run/redis.pid" is more conforming
|
||||||
# and should be used instead.
|
# and should be used instead.
|
||||||
pidfile /var/run/redis_6379.pid
|
pidfile "/var/run/redis_6379.pid"
|
||||||
|
|
||||||
# Specify the server verbosity level.
|
# Specify the server verbosity level.
|
||||||
# This can be one of:
|
# This can be one of:
|
||||||
@ -478,7 +478,7 @@ rdbchecksum yes
|
|||||||
# sanitize-dump-payload no
|
# sanitize-dump-payload no
|
||||||
|
|
||||||
# The filename where to dump the DB
|
# The filename where to dump the DB
|
||||||
dbfilename dump.rdb
|
dbfilename "dump.rdb"
|
||||||
|
|
||||||
# Remove RDB files used by replication in instances without persistence
|
# Remove RDB files used by replication in instances without persistence
|
||||||
# enabled. By default this option is disabled, however there are environments
|
# enabled. By default this option is disabled, however there are environments
|
||||||
@ -501,7 +501,7 @@ rdb-del-sync-files no
|
|||||||
# The Append Only File will also be created inside this directory.
|
# The Append Only File will also be created inside this directory.
|
||||||
#
|
#
|
||||||
# Note that you must specify a directory here, not a file name.
|
# Note that you must specify a directory here, not a file name.
|
||||||
dir ./
|
dir "/data"
|
||||||
|
|
||||||
################################# REPLICATION #################################
|
################################# REPLICATION #################################
|
||||||
|
|
||||||
@ -1343,7 +1343,6 @@ oom-score-adj no
|
|||||||
# oom-score-adj-values to positive values will always succeed.
|
# oom-score-adj-values to positive values will always succeed.
|
||||||
oom-score-adj-values 0 200 800
|
oom-score-adj-values 0 200 800
|
||||||
|
|
||||||
|
|
||||||
#################### KERNEL transparent hugepage CONTROL ######################
|
#################### KERNEL transparent hugepage CONTROL ######################
|
||||||
|
|
||||||
# Usually the kernel Transparent Huge Pages control is set to "madvise" or
|
# Usually the kernel Transparent Huge Pages control is set to "madvise" or
|
||||||
@ -1816,7 +1815,7 @@ slowlog-log-slower-than 10000
|
|||||||
|
|
||||||
# There is no limit to this length. Just be aware that it will consume memory.
|
# There is no limit to this length. Just be aware that it will consume memory.
|
||||||
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
||||||
slowlog-max-len 128
|
slowlog-max-len 10086
|
||||||
|
|
||||||
################################ LATENCY MONITOR ##############################
|
################################ LATENCY MONITOR ##############################
|
||||||
|
|
||||||
@ -1979,7 +1978,7 @@ hll-sparse-max-bytes 3000
|
|||||||
# zero, the limit is ignored, so for instance it is possible to set just a
|
# zero, the limit is ignored, so for instance it is possible to set just a
|
||||||
# max entries limit by setting max-bytes to 0 and max-entries to the desired
|
# max entries limit by setting max-bytes to 0 and max-entries to the desired
|
||||||
# value.
|
# value.
|
||||||
stream-node-max-bytes 4096
|
stream-node-max-bytes 4kb
|
||||||
stream-node-max-entries 100
|
stream-node-max-entries 100
|
||||||
|
|
||||||
# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
|
# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in
|
||||||
@ -2274,3 +2273,10 @@ jemalloc-bg-thread yes
|
|||||||
# to suppress
|
# to suppress
|
||||||
#
|
#
|
||||||
# ignore-warnings ARM64-COW-BUG
|
# ignore-warnings ARM64-COW-BUG
|
||||||
|
|
||||||
|
# Generated by CONFIG REWRITE
|
||||||
|
save 3600 1
|
||||||
|
save 300 100
|
||||||
|
save 60 10000
|
||||||
|
latency-tracking-info-percentiles 50 99 99.9
|
||||||
|
user default on nopass ~* &* +@all
|
||||||
|
@ -139,6 +139,7 @@ export default {
|
|||||||
removing: '迁移中',
|
removing: '迁移中',
|
||||||
paused: '暂停',
|
paused: '暂停',
|
||||||
exited: '停止',
|
exited: '停止',
|
||||||
|
installing: '安装中',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
menu: {
|
menu: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user