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

标签 linux database redhat postgresql-9.3 symmetricds

我需要在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/

相关文章:

database - 对象通常作为序列化对象存储在数据库中还是只是字段

java - 如何将多个xml数据存储到java数据库中

linux - Bash 脚本在相对路径目录中找不到文件

php - shell_exec() 总是返回空字符串

python - 如何从 python 调用 nikto 并将输出作为字符串返回

Python 授予读/写文件的完全权限

mysql - SQL 多个 JOINS 中的 SUMS 不正确

linux - 如何使用 bash 查找日期范围内的特定日期?

linux - 如何在 vi 编辑器中将 Notepad++ 中的代码复制到新文件中?

java - 带有 CentOS 7 的 OpenJDK 1.8.0_202 : libpng12. so.0:无法打开共享对象文件: