conf
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
# mode.
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#bind 127.0.0.1 -::1
|
||||
bind 127.0.0.1 192.168.0.229
|
||||
bind 127.0.0.1
|
||||
|
||||
# Protected mode is a layer of security protection, in order to avoid that
|
||||
# Redis instances left open on the internet are accessed and exploited.
|
||||
@@ -2081,4 +2081,6 @@ replica-weighting-factor 2
|
||||
# disk space or any other I/O error Redis will instead use memory.
|
||||
#
|
||||
# blob-support false
|
||||
|
||||
# set slave of UDM primary redis
|
||||
slaveof 192.168.4.228 6379
|
||||
|
||||
@@ -54,6 +54,7 @@ cp -f systemd/adb.service ${RPM_BUILD_ROOT}/lib/systemd/system/adb.service
|
||||
|
||||
# 安装完成后执行
|
||||
%post
|
||||
if [ ! -e "${RedisConfDir}/redis.conf" ]; then cp ${RedisConfDir}/default/redis.conf ${RedisConfDir}; fi
|
||||
if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi
|
||||
mkdir -p /opt/omc/ftp
|
||||
mkdir -p /opt/omc/ftp/log
|
||||
|
||||
Reference in New Issue
Block a user