Things have changed in SOLR 6. I modified the iSOLR startup script to use the new solr start up routine...not sure if this is the right thing to do but it seems to work.
http://idroot.net/tutorials/how-to-install-apache-solr-on-centos-7/
http://yonik.com/solr-tutorial/
http://yonik.com/
wget http://apache.org/dist/lucene/solr/KEYS
gpg --import KEYS
# get the .asc and .sha1 files from the Apache server
mv Downloads/solr-6.6.1.tgz
gpg -verify solr-6.6.1.tgz.asc solr-6.6.1.tgz
sha1sum solr-6.6.1.tgz
tar xvf solr-6.6.1.tgz
sudo mv solr-6.6.1 opt/solrsudo mv solr-6.6.1 /opt/solr
sudo firewall-cmd --zone=public --add-port=8983/tcp --permanent
sudo firewall-cmdreload
/opt/solr/bin/solr start
# test
https://serverfault.com/questions/551512/make-solr-server-accessible-on-network
##########################################3
#!/bin/bash
#
# chkconfig: 2345 20 20
# short-description: Solr
# description: Startup script for Apache Solr Server
SOLR_DIR="/opt/solr/core"
SOLR_BIN_DIR="/opt/solr/bin"
SOLR=$SOLR_BIN_DIR/solr
LOG_FILE="/var/log/solr.log"
START_JAR=/opt/solr/server/start.jar
JAVA="/usr/bin/java "
start() {
echo -n "Starting Solr... "
cd $SOLR_DIR
$JAVA $SOLR start > $LOG_FILE 2>&1 &
sleep 5
RETVAL=$?
if [ $RETVAL = 0 ]
then
echo "done."
else
echo "failed. See error code for more information."
fi
return $RETVAL
}
stop() {
echo -n "Stopping Solr... "
$JAVA $SOLR start > $LOG_FILE 2>&1 &
RETVAL=$?
if [ $RETVAL = 0 ]
then
echo "done."
else
echo "failed. See error code for more information."
fi
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: solr {start|stop|restart}"
exit 3
esac
exit $RETVAL
http://idroot.net/tutorials/how-to-install-apache-solr-on-centos-7/
http://yonik.com/solr-tutorial/
http://yonik.com/
wget http://apache.org/dist/lucene/solr/KEYS
gpg --import KEYS
# get the .asc and .sha1 files from the Apache server
mv Downloads/solr-6.6.1.tgz
gpg -verify solr-6.6.1.tgz.asc solr-6.6.1.tgz
sha1sum solr-6.6.1.tgz
tar xvf solr-6.6.1.tgz
sudo mv solr-6.6.1 opt/solrsudo mv solr-6.6.1 /opt/solr
sudo firewall-cmd --zone=public --add-port=8983/tcp --permanent
sudo firewall-cmdreload
/opt/solr/bin/solr start
# test
https://serverfault.com/questions/551512/make-solr-server-accessible-on-network
wget -qO- http://localhost:8983/solr
sudo netstat -anp | grep :8983
telnet 127.0.0.1 8983
# In a browser
http://localhost:8983/solr/##########################################3
#!/bin/bash
#
# chkconfig: 2345 20 20
# short-description: Solr
# description: Startup script for Apache Solr Server
SOLR_DIR="/opt/solr/core"
SOLR_BIN_DIR="/opt/solr/bin"
SOLR=$SOLR_BIN_DIR/solr
LOG_FILE="/var/log/solr.log"
START_JAR=/opt/solr/server/start.jar
JAVA="/usr/bin/java "
start() {
echo -n "Starting Solr... "
cd $SOLR_DIR
$JAVA $SOLR start > $LOG_FILE 2>&1 &
sleep 5
RETVAL=$?
if [ $RETVAL = 0 ]
then
echo "done."
else
echo "failed. See error code for more information."
fi
return $RETVAL
}
stop() {
echo -n "Stopping Solr... "
$JAVA $SOLR start > $LOG_FILE 2>&1 &
RETVAL=$?
if [ $RETVAL = 0 ]
then
echo "done."
else
echo "failed. See error code for more information."
fi
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: solr {start|stop|restart}"
exit 3
esac
exit $RETVAL
No comments:
Post a Comment