2016-04-18 1 views
0

J'ai besoin de configurer SymmtricDS dans Linux redhat Machine en tant que Master.I fait référence à l'URL à configurer dans Linux. http://www.symmetricds.org/doc/2.2/html/advanced-topics.html#running-service-unixligne 23: /etc/init.d/setenv: Aucun fichier ou répertoire dans linux redhat

La première étape est terminée

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

prochaine fois que je lance cette commande

[[email protected] sbin]# service sym_service start 

Je reçois l'erreur suivante.

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

Le fichier est 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" 

mais le fichier sym_service.conf devrait être là dans un endroit conf.

Répondre

-1

Utilisez la dernière version du Guide de l'utilisateur en expliquant comment installer le Linux Daemon. La documentation liée à votre réponse se rapporte à la version 2.2 et à partir du service sym, il semble que vous utilisiez la dernière version de la bibliothèque.

+0

Cher Boris Pavlovic, Merci pour la réponse, Alors pouvez-vous s'il vous plaît me donner les informations détaillées pour configurer SymmetricDS dans Linux 7.1, quelle est la signification exacte d'un script init est écrit dans le répertoire système /etc/init.d. Les liens symboliques sont créés pour démarrer aux niveaux d'exécution 2, 3 et 5 et s'arrêter aux niveaux d'exécution 0, 1 et 6. Pour installer le script, exécutez la commande suivante en tant qu'utilisateur root: –

+0

avez-vous essayé d'exécuter 'sudo sh bin/sym_service installer »? –

+0

quel emplacement bin vous êtes moyen,/usr/bin ou /opt/SymmtricDS/symmetric-server-3.7.28/symmetric-server-3.7.28/bin –