1
0
This commit is contained in:
2023-09-14 14:46:03 +08:00
parent 58e3d5124c
commit eb7f33c477
4 changed files with 19 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
# !/bin/sh
RedisConfDir=/usr/local/db/bin/conf
OMCEtcDir=/usr/local/omc/etc
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
echo ""
echo "* To start/stop/restart/status omc service, please run:"
echo " sudo systemctl start/stop/restart/status restagent.service"
@@ -17,6 +22,14 @@ systemctl enable captrace.service
systemctl enable adb.service
chmod +rx /usr/local/db/bin/*
systemctl daemon-reload
for CFile in $CFileList; do
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
cp ${OMCEtcDir}/default/${CFile} ${OMCEtcDir};
fi
done
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 -pomc123 omc;
mkdir -p /opt/omc/ftp

View File

@@ -1369,4 +1369,6 @@ rdb-save-incremental-fsync yes
# Maximum number of set/hash/zset/list fields that will be processed from
# the main dictionary scan
# active-defrag-max-scan-fields 1000
# set slave of UDM primary redis
slaveof 192.168.4.228 6379