0

我需要在 Linux redhat Machine 中将 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 位置。

4

1 回答 1

-1

使用最新版本的用户指南以及如何安装Linux Daemon的说明。您的答案中链接的文档与 2.2 版有关,从 sym 服务看来,您使用的是最新版本的库。

于 2016-04-18T11:21:07.327 回答