gpt4 book ai didi

linux - 第 23 行 :/etc/init. d/setenv: 在 linux redhat 中没有这样的文件或目录

转载 作者:太空宇宙 更新时间:2023-11-04 04:33:53 24 4
gpt4 key购买 nike

我需要在Linux redhat机器中将SymmtricDS配置为Master。我指的是在linux中配置的URL。 http://www.symmetricds.org/doc/2.2/html/advanced-topics.html#running-service-unix

第一步完成

cp bin/sym_service.initd /etc/init.d/sym_service

接下来当我运行此命令时

[root@samrtcity sbin]# service sym_service start

我收到以下错误。

/etc/init.d/sym_service: line 23: /etc/init.d/setenv: No such file or directory

sym_service 文件是:

#!/bin/sh
#
# Licensed to JumpMind Inc under one or more contributor
# license agreements. See the NOTICE file distributed
# with this work for additional information regarding
# copyright ownership. JumpMind Inc licenses this file
# to you under the GNU General Public License, version 3.0 (GPLv3)
# (the "License"); you may not use this file except in compliance
# with the License.
#
# You should have received a copy of the GNU General Public License,
# version 3.0 (GPLv3) along with this library; if not, see
# <http://www.gnu.org/licenses/>.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

. "`dirname "$0"`/setenv"
exec "$SYM_JAVA" -cp "$CLASSPATH" -Djava.io.tmpdir=tmp org.jumpmind.symmetric.wrapper.Wrapper "$1" "$SYM_HOME/opt/SymmtricDS/symmetric-server-3.7.28/symmetric-server-3.7.28/conf/sym_service.conf"

但是 sym_service.conf 文件应该位于 conf 位置。

最佳答案

使用最新版本的用户指南,其中解释了如何安装 Linux Daemon 。您的答案中链接的文档与版本 2.2 相关,从 sym 服务看来您正在使用该库的最新版本。

关于linux - 第 23 行 :/etc/init. d/setenv: 在 linux redhat 中没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36690919/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com